Illinois passed an expansive reproductive rights bill on Friday further protecting the right to an abortion as GOP-controlled state legislatures pass abortion bans throughout the country.

The state Senate passed the bill 34-20 down party lines after the House passed it 64-50 on May 28. The progressive bill is meant to strengthen abortion rights in Illinois and codify the state’s current practices in case the conservative-leaning Supreme Court overturns the landmark 1973 ruling Roe v. Wade, which guarantees a person’s right to a safe and legal abortion.

“The Act sets forth the fundamental rights of individuals to make autonomous decisions about one’s own reproductive health, including the fundamental right to use or refuse reproductive health care,” the bill reads. It also restricts “the ability of the State to deny, interfere with, or discriminate against these fundamental rights.”

The bill’s passage repeals the 1975 Illinois Abortion Law and replaces it with the Reproductive Health Act, removing decades-old measures requiring spousal consent, waiting periods and criminal penalties for doctors who perform abortions, among other restrictions. Courts had already blocked the criminal penalties measure before the new legislation repealed it.

The legislation also has clarifying language that treats abortion as health care.

“I believe, frankly, there’s a war against women’s rights going on,” said State Sen. Melinda Bush (D), the bill’s chief sponsor in the Senate, according to The Chicago Tribune.

State Rep. Kelly Cassidy (D), the bill’s original sponsor, has said the bill came in response to the wave of states passing restrictive abortion laws that basically outlaw the procedure. Alabama passed the nation’s strictest abortion ban earlier this month, making it a felony for a doctor to perform an abortion in almost all cases, including rape and incest