A federal judge has declared a parts of a new law requiring abortion doctors to have admitting privileges at nearby hospitals unconstitutional.

The ruling came after lawyers for Planned Parenthood and other women’s health organizations brought a lawsuit against abortion measures passed in June that would have taken effect Tuesday, resulting in the closure of a third of clinics in Texas that provide abortion procedures. During trial, officials with a number of abortion clinics testified that they’d tried to obtain admitting privileges for their doctors at 32 hospitals, only 15 of which accepted their applications. Religious hospitals across the state will not employ doctors who perform abortions, and many other hospitals fear protest and public backlash if they grant the required privileges.

Governor Rick Perry quickly responded to Yeakel’s decision with a written statement in which he vowed to “continue fighting to implement the laws passed by the duly-elected officials of our state, laws that reflect the will and values of Texans.