(CNN) Alabama Gov. Kay Ivey on Wednesday signed into law a controversial abortion bill that could punish doctors who perform abortions with life in prison.

"Today, I signed into law the Alabama Human Life Protection Act, a bill that was approved by overwhelming majorities in both chambers of the Legislature," said Ivey, a Republican, in a statement. "To the bill's many supporters, this 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."

Gov. Kay Ivey signing Alabama abortion bill.

The Alabama Senate passed the bill 25-6 late Tuesday night. The law only allows exceptions "to avoid a serious health risk to the unborn child's mother," for ectopic pregnancy and if the "unborn child has a lethal anomaly." Democrats re-introduced an amendment to exempt rape and incest victims, but the motion failed on an 11-21 vote.

Ivey noted in her statement that the new law may be unenforceable due to the Supreme Court's Roe v. Wade decision that legalized abortion in all 50 states. But, the new law was passed with the aim of challenging that decision, Ivey said.

"No matter one's personal view on abortion, we can all recognize that, at least for the short term, this bill may similarly be unenforceable," Ivey wrote. "As citizens of this great country, we must always respect the authority of the U.S. Supreme Court even when we disagree with their decisions. Many Americans, myself included, disagreed when Roe v. Wade was handed down in 1973. The sponsors of this bill believe that it is time, once again, for the U.S. Supreme Court to revisit this important matter, and they believe this act may bring about the best opportunity for this to occur."

Today, I signed into law the Alabama Human Life Protection Act. To the bill's many supporters, this legislation stands as a powerful testament to Alabamians' deeply held belief that every life is precious & that every life is a sacred gift from God. https://t.co/DwKJyAjSs8 pic.twitter.com/PIUQip6nmw — Governor Kay Ivey (@GovernorKayIvey) May 15, 2019