A U.S. district court judge in Indiana ruled this week that a state law requiring abortion clinics to include certain medical facilities violates the Constitution.

Judge Jane Magnus-Stinson said the law, passed by the Republican-dominated legislature in 2013, violates the Equal Protection Clause. The law requires abortion clinics — including those that only offer a nonsurgical pill that terminates a pregnancy — provide procedure and recovery rooms and a separate scrub room.

The law does not require the same facilities in a physician’s office that prescribes the same pill. Magnus-Stinson said that distinction was “meaningless.” She said the regulation would burden facilities with unnecessary costs for rooms that would not be used, the Indianapolis Star reported.

Abortion rights advocates said the law was aimed at shuttering a Planned Parenthood facility in Lafayette. That’s the only facility in the state that prescribes mifepristone, the nonsurgical drug, and does not perform surgical abortions.

The American Civil Liberties Union of Indiana filed suit to block the law on behalf of Planned Parenthood. Planned Parenthood said the drug was only prescribed 54 times over the last year, out of more than 10,000 prescriptions written.

Magnus-Stinson’s ruling isn’t final, meaning Indiana Attorney General Greg Zoeller (R) cannot file an appeal yet. Zoeller’s office said in a statement it would review the judge’s decision, and that future court dates are ahead.

“We respect the court’s ruling and also respect the authority of the people’s elected representatives in the Legislature to make policy regarding physical plant requirements for nonsurgical abortion clinics,” Zoeller said in the statement.

Magnus-Stinson previously issued a preliminary injunction against the law last November, and a trial is scheduled to begin June 1.