PHOTO: Alabama Legislature
Now playing
02:20
Alabama senators spar over restrictive abortion bill
WASHINGTON, DC - MARCH 05: Sen. John Cornyn (R) (R-TX) talks with Sen. Joe Manchin (D-WV) while walking to the U.S. Senate chamber for a vote March 05, 2021 in Washington, DC. The Senate continues to debate the latest COVID-19 relief bill.  (Photo by Win McNamee/Getty Images)
PHOTO: Win McNamee/Getty Images
WASHINGTON, DC - MARCH 05: Sen. John Cornyn (R) (R-TX) talks with Sen. Joe Manchin (D-WV) while walking to the U.S. Senate chamber for a vote March 05, 2021 in Washington, DC. The Senate continues to debate the latest COVID-19 relief bill. (Photo by Win McNamee/Getty Images)
Now playing
02:54
Axelrod breaks down Manchin's surprising move
sinema
PHOTO: CNN
sinema
Now playing
01:50
Senator's move has many on the internet outraged
PHOTO: FBI
Now playing
02:58
Trump State Department official charged in Capitol riot
WASHINGTON, DC - JANUARY 06: U.S. Sen. Paul Gosar (R-AZ) speaks on the floor of the House Chamber during a joint session of congress on January 06, 2021 in Washington, DC. Congress held a joint session today to ratify President-elect Joe Biden's 306-232 Electoral College win over President Donald Trump. A group of Republican senators said they would reject the Electoral College votes of several states unless Congress appointed a commission to audit the election results. (Photo by Drew Angerer/Getty Images)
PHOTO: Drew Angerer/Getty Images
WASHINGTON, DC - JANUARY 06: U.S. Sen. Paul Gosar (R-AZ) speaks on the floor of the House Chamber during a joint session of congress on January 06, 2021 in Washington, DC. Congress held a joint session today to ratify President-elect Joe Biden's 306-232 Electoral College win over President Donald Trump. A group of Republican senators said they would reject the Electoral College votes of several states unless Congress appointed a commission to audit the election results. (Photo by Drew Angerer/Getty Images)
Now playing
02:19
This is what Rep. Gosar was posting days before Capitol riot
John King Magic Wall 0305
PHOTO: CNN
John King Magic Wall 0305
Now playing
02:17
President Biden sending a team to the US-Mexico border
Senior Advisor to the President Jared Kushner  attends a press conference on September 4, 2020, in the Brady Briefing Room of the White House in Washington, DC. (Photo by Brendan Smialowski / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
PHOTO: BRENDAN SMIALOWSKI/AFP/AFP via Getty Images
Senior Advisor to the President Jared Kushner attends a press conference on September 4, 2020, in the Brady Briefing Room of the White House in Washington, DC. (Photo by Brendan Smialowski / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
Now playing
02:50
Jared Kushner disappears from Trump's inner circle
Rep john garamendi 0305
PHOTO: CNN
Rep john garamendi 0305
Now playing
02:33
Rep. Garamendi: Any lawmaker involved in Capitol riots ought to be thrown out of Congress
Protesters gather at Lincoln Park to demand the Emancipation Memorial be taken down on June 23, 2020 in Washington, DC.
PHOTO: Tasos Katopodis/Getty Images
Protesters gather at Lincoln Park to demand the Emancipation Memorial be taken down on June 23, 2020 in Washington, DC.
Now playing
03:01
Why some people want this Abraham Lincoln statue taken down
psaki
PHOTO: CNN
psaki
Now playing
00:56
Psaki fires back at Trump testing czar over vaccine claims
PHOTO: CNN
Now playing
03:04
Avlon: Pence's op-ed is 'way worse than Stockholm syndrome'
PHOTO: CNN
Now playing
01:35
See what security looks like outside US Capitol
PHOTO: Gov. Cuomo's office
Now playing
03:35
Gov. Andrew Cuomo addresses women's allegations
Cuomo
PHOTO: Gov. Cuomo's Office
Cuomo
Now playing
00:56
Cuomo says he has no plans to resign
Now playing
04:51
Elected Republican who supports Biden's bill speaks out
President Joe Biden speaks during a meeting about cancer in the Oval Office of the White House, Wednesday, March 3, 2021, in Washington. (AP Photo/Alex Brandon)
PHOTO: Alex Brandon/AP
President Joe Biden speaks during a meeting about cancer in the Oval Office of the White House, Wednesday, March 3, 2021, in Washington. (AP Photo/Alex Brandon)
Now playing
01:20
'Neanderthal thinking': Biden on states lifting mask restrictions
(CNN) —  

A federal judge has blocked a controversial Alabama abortion bill that would block almost all abortions, calling it a “ban” that “contravenes clear Supreme Court precedent.”

US District Judge Myron Thompson issued a preliminary injunction on Tuesday barring the Human Life Protection Act from taking effect until the court resolves the case in full. The law was slated to go into effect next month.

Thompson’s decision to block the Alabama ban means that all of the state laws passed this year restricting early-stage abortions have been blocked from going into effect by the courts.

In the 17-page opinion, Thompson wrote that the state’s abortion ban “violates the right of an individual to privacy, to make choices central to personal dignity and autonomy.” Thompson also stated that the ban “diminishes the capacity of women to act in society, and to make reproductive decisions.”

Thompson added, “It defies the United States Constitution.”

That will be the question at the heart of the case if Thompson affirms his ruling and sets up a Supreme Court appeal – a result Alabama officials said they were hoping for when they passed the law in the first place.

Alabama Attorney General Steve Marshall called Thompson’s ruling “not unexpected,” pointing to the bill’s aims of overturning the Supreme Court’s landmark cases Roe v. Wade, which legalized abortion in the US in 1973, and Casey v. Planned Parenthood, one of the key opinions that upheld Roe in 1992.

“As we have stated before, the State’s objective is to advance our case to the US Supreme Court where we intend to submit evidence that supports our argument that Roe and Casey were wrongly decided and that the Constitution does not prohibit states from protecting unborn children from abortion,” Marshall said in a statement.

The bill, which Republican Gov. Kay Ivey signed into law in May, would punish doctors who perform abortions with life in prison. 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” – not for instances of rape or incest.

“We must continue doing all we can to protect life. However, we also anticipated this challenge, and I support the rule of law,” Ivey said in a statement Tuesday, highlighting the bill’s “overwhelming support” when it passed the legislature.

The American Civil Liberties Union, ACLU of Alabama and Planned Parenthood Federation filed their lawsuit shortly after the bill was signed on behalf of Alabama abortion providers challenging the law.

The groups cheered Tuesday’s ruling.

“Today’s victory means people can still access the health care they need across Alabama – for now,” Alexis McGill Johnson, acting president of Planned Parenthood, said in a statement.

She said state legislators in Alabama and elsewhere were “putting people’s health and lives at risk in their attempts to ban abortion outright in this country.”

This story has been updated.

CNN’s Dan Berman contributed to this report.