The Oklahoma Supreme Court ruled unanimously Tuesday that a bill passed by the state Legislature to restrict abortion is unconstitutional.

Senate Bill 642, which was passed in 2015 but was blocked pending court action, sought to add new requirements to abortion providers and would have penalized them for violations.

It would have made it a felony for a person to help a minor obtain an abortion without parental consent.

It would have authorized the Oklahoma State Bureau of Investigation to create new protocols for statutory rape investigations and required abortion providers to preserve fetal tissue when an abortion was performed on someone under 14 years old. The tissue would be used to aid those investigations.