A judge decided on Tuesday to temporarily block a sweeping abortion ban from going into effect in Alabama, one of several states to pass legally dubious restrictions on the procedure this year.

U.S. District Judge Myron Thompson blocked the legislation, known as the Human Life Protection Act, which was set to go into effect on Nov. 15. The law, the strictest of all the state abortion bans passed so far in 2019, would make it a felony for a doctor in Alabama to perform an abortion in nearly all cases — including pregnancies resulting from rape and incest, except when it is necessary to save the pregnant person’s life.

“As expected, the court has blocked the law and it will not go into effect,” Randall Marshall, executive director of the ACLU of Alabama, told AL.com. “Abortion remains legal in Alabama. The state’s repeated attempts to push abortion out of reach by enacting unconstitutional laws restricting abortions has already cost taxpayers nearly $2.5 million. This ill-advised law will cost taxpayers more money.”

Gov. Kay Ivey (R) signed the bill in May, saying the legislation “stands as a powerful testament to Alabamians’ deeply held belief that every life is precious and that every life is a sacred gift from God.”

The decision comes in response to a lawsuit from Planned Parenthood and the American Civil Liberties Union.