AUSTIN, Texas – A federal judge struck down the Texas abortion law that bans second-trimester abortions on Wednesday. 

U.S. District Judge Lee Yeakel ruled against the measure that would ban the common procedure known as dilation and evacuation.

The trial began in Austin on Nov. 2, two months after the Judge Yeakel temporarily blocked the state from enforcing the anti-abortion law passed by the Republican-controlled Legislature. Senate Bill 8 was slated to become a law after it was signed by Governor Greg Abbott.

Abortion opponents claim the procedure is inhumane. However, abortion providers have said the procedure rarely results in complications.

Yeakel ruled in favor of Planned Parenthood, the organization that brought the case against the state. Texas Attorney General Ken Paxton said he plans on immediately appealing the ruling.

“During a five-day trial this month in district court, we created a record unlike any other in exposing the horrors of dismemberment abortions. No just society should tolerate the tearing of living human beings to pieces,” Paxton said in a statement. “Through extraordinary evidence and expert witness testimony, we established that Senate Bill 8 is lawful, treats the unborn with dignity and respect, and protects the integrity of the medical profession. We will defend Senate Bill 8 all the way to the U.S. Supreme Court, if necessary.”

Following the ruling, Planned Parenthood tweeted that “politics should never interfere with women’s health and safety.”

Earlier this year, Texas was also stopped from mandating burial or cremations of fetal remains.