The Kansas Supreme Court on Friday blocked a law that would have banned the most commonly used procedure for second-trimester abortions, arguing that the state Constitution protected the right of women to “decide whether to continue a pregnancy.”

The court sided in a 6-1 majority with the plaintiffs in the case, two physicians who performed the procedure, in a sweeping ruling that opens the door for abortion rights activists to challenge a series of other restrictions that the state’s Republican-controlled Legislature has enacted.

The Kansas case comes at a time of great change for abortion in the United States. Republican-controlled legislatures have chipped away at abortion rights, turning the tide in a broad swath of the country’s middle and the South: Six states are down to one abortion clinic.

And now, the math on the Supreme Court has changed with President Trump’s choice of Brett M. Kavanaugh last year, and abortion rights advocates are worried that Roe v. Wade, the national 1973 ruling that provided federal protections for abortion, may soon be at risk.