Washington (CNN) The Kansas Supreme Court ruled on Friday that women have the right to an abortion under the state's Constitution.

In a 6-1 decision, the state's highest court also kept in place a temporary injunction on a law that bans a common second trimester abortion procedure.

"We hold today that section 1 of the Kansas Constitution Bill of Rights protects all Kansans' natural right of personal autonomy, which includes the right to control one's own body, to assert bodily integrity, and to exercise self-determination. This right allows a woman to make her own decisions regarding her body, health, family formation, and family life—decisions that can include whether to continue a pregnancy," the majority wrote in their opinion.

The Kansas Supreme Court said it would leave resolving the merits of the law to a lower court.

The law, Senate Bill 95, was passed in 2015 by the Kansas legislature. It prohibited a common abortion method used in the second trimester of pregnancy, known as the "dilation and evacuation" procedure, except when the mother is at risk of death or "substantial and irreversible physical impairment of a major bodily function."

Read More