A federal judge struck down a Texas law that would halt access to most second-term abortions, saying it would put an "undue burden" on women.

The order from Judge Lee Yeakel in the U.S. District Court for the Western District of Texas comes as his temporary restraining order against the Texas law was set to expire Wednesday, according to a report in the Texas Tribune.

The Center for Reproductive Rights and Planned Parenthood filed a lawsuit that challenged the bill, which was signed this year and had been set to go into effect Sept. 1. Yeakel issued the temporary restraining order on the measure a day before the effective date.

The bill would ban the most common form of second-trimester abortions called dilation and evacuation, the Tribune reported.

The decision comes a little more than a year after the Supreme Court struck down a 2013 Texas law that forced abortion providers to have admitting privileges at a local hospital and force abortion clinics to meet ambulatory surgical center requirements.