North Carolina’s Supreme Court has struck down a law that bans abortion on the grounds that it violates the constitutional right to privacy, but not all states have followed suit.
North Carolina’s highest court said in a ruling released Monday that a state law passed last year that restricted abortions after 20 weeks of pregnancy is unconstitutional because it bans women from seeking abortions because they are pregnant and they do not have a “medical necessity.”
The state law had previously been struck down by the U.S. Supreme Court.
The justices in the 5-4 ruling ruled that the law violated a woman’s right to “conscience,” which protects an individual’s right not to be coerced into a medical procedure.
The law also violates a woman who does not want to be compelled to have an abortion, they wrote.
The ruling was not binding on North Carolina, which is one of five states that have enacted similar bans.
The decision comes after North Carolina lawmakers passed a law in 2015 that restricts abortions after 12 weeks of gestation, when most abortions occur.
It also has been struck back down by a federal judge who said it violated women’s privacy rights.
The North Carolina law was challenged in federal court in February by Planned Parenthood, which argued that the restrictions on abortion would affect the organization’s access to funding.
A federal judge in April upheld the law, but the state appealed the ruling to the Supreme Court, which declined to hear the case.
The Supreme Court had previously ruled that restrictions on abortions are constitutional under the Fourteenth Amendment of the U-S Constitution.
The justices in a previous ruling in a similar case in February upheld a ban on abortions after 22 weeks of gestational age.
The Supreme Court previously struck down laws in Oklahoma, Tennessee and Missouri that restrict abortions after 16 weeks of fetal development.