In the case Roe v. Wade, the Supreme Court ruled that state laws violated Constitutional rights.
Sate laws said abortion was illegal but this violated the Constitution because the court said a woman has the right or an abortion. Making abortion illegal violated women's rights.