MADISON, Wis. (WRN) — The Wisconsin Supreme Court has sided with Democrats and pro-choice advocates on a challenge to the state’s abortion ban.

In a 4-3 decision from the liberal majority court, justices ruled that an 1849 law against infanticide has been superseded by several other state laws, and by a previous ruling from the Court that the 1849 law only applied to assault which resulted in death of an unborn child, not elective abortions.

The ruling makes way for a return to the state’s previous status allowing regulated abortions.

Conservative Justice Annette Zeigler wrote in the dissent that the court’s four liberal justices are “compromised on the issue of abortion,” calling their analysis “flawed.” In the majority opinion, Justice Rebecca Dallet said state lawmakers are free to pass legislation modifying the court’s ruling.