A federal judge has ruled that parts of the state’s new abortion law are unconstitutional, meaning they won’t go into effect Tuesday as planned.

District Judge Lee Yeakel made the ruling today.

His decision follows a three-day trial over the law, which requires abortion doctors to have admitting privileges at nearby hospitals and regulates the way doctors can administer abortion-inducing drugs. Lawyers for Planned Parenthood argued that the regulations would shut down a third of the abortion clinics in Texas. The state has argued that the law protects women and the life of the fetus.

The attorney general’s office is expected to file an appeal to the 5th Circuit Court of Appeals in New Orleans.

The Associated Press contributed to this report.