A federal judge in Wisconsin ruled as unconstitutional on Friday a state law requiring any doctor performing an abortion to have privileges to admit patients to a nearby hospital.

Shortly after Republican Governor Scott Walker signed it into law in August 2013, U.S. District Judge William Conley temporarily blocked the law, which requires doctors to have admitting privileges at a hospital located within 30 miles of his or her practice.

Planned Parenthood of Wisconsin and Affiliated Medical Services, the state's two abortion providers, challenged the measure in court, saying it could force abortion clinics in Appleton and Milwaukee to close.

On Friday, Conley ordered a permanent injunction against the law, saying in his 91-page order and opinion that the law violated women's 14th amendment rights under the U.S. Constitution.

"The marginal benefit to women's health of requiring hospital admitting privileges, if any, is substantially outweighed by the burden this requirement will have on women's health outcomes due to restricted access to abortions in Wisconsin," Conley wrote.

"While the court agrees with the State that sometimes it is necessary to reduce access to insure safety, this is decidedly not one of those instances," he said.

Walker's office could not be reached immediately for comment on Friday night.

Last June, the U.S. Supreme Court decided against intervening in the case, turning away the state's appeal against a 7th U.S. Circuit Court of Appeals ruling, which upheld Conley's earlier decision to temporarily block the law.

"We all want to protect patient safety; this law doesn’t do that," Planned Parenthood of Wisconsin CEO Teri Huyck said in a statement.

"Politicians passed this law in order to make it extremely difficult for women in Wisconsin to get safe and legal abortions, plain and simple," Huyck said.

The Guttmacher Institute, a research group supporting the right to abortion whose reports are cited by both sides in the debate, says that 14 states mandate that abortion providers be affiliated with a local hospital in some way.

In Texas, where a new law also requires physicians administering abortions to have admitting privileges at a hospital within 30 miles of their clinics, women have to travel as far as 270 miles to receive care, raising the likelihood of risky, self-induced abortions, advocates say.

Al Jazeera and Reuters