The law, passed Oct. 8, made it illegal to come within 30 feet of a vaccination site “for the purpose of obstructing, injuring, harassing, intimidating, or interfering with that person.” U.S. District Judge Dale Drozd made his ruling Saturday, issuing a restraining order that prohibits the state from enforcing the law’s harassment portion, saying the law’s “uncommon definition of ‘harassing,’” is too restrictive, according to the Associated Press.

He left in place the law’s ban on obstruction, causing injuries, intimidation, or intervention during such protests, attributing to the fact that these portions “appear to more precisely target the harms that the Legislature sought to prevent and further the state’s interest in ensuring that Californians can freely access vaccination sites.”

Drozd said that the law’s definition of harassment “is far broader than the dictionary definition” of the term in his 28-page decision.

He also expressed support for accessible COVID-19 vaccinations at affected sites. “There can be no doubt that access to COVID-19 vaccines is essential to ‘stemming the spread of COVID-19,’ and that a state’s interest in ensuring its citizens can access and obtain COVID-19 vaccinations is compelling,” the judge explained.

“Despite these undeniable facts,” he continued, “the court recognizes that the COVID-19 vaccines have been a subject of controversy and protest.”

If convicted of violating the buffer zone law, violators could spend up to six months in jail and pay up to $1,000 in fines.

For more reporting from the Associated Press, see below.

Opponents of the bill said it is written so broadly that it includes any vaccine and can also apply to anti-abortion protesters.

Alliance Defending Freedom sued on behalf of Right to Life of Central California, which is located next to a Planned Parenthood abortion clinic that offers the HPV vaccine against the human papillomavirus, but not vaccinations against COVID-19.

The anti-abortion group said the law, as written, would block its members from approaching women on the public sidewalk and street outside its own building and even in its own parking lot.

The ruling came as the U.S. Supreme Court on Monday coincidently considered whether it would allow legal challenges to a Texas law that has virtually ended abortion in the nation’s second-largest state after six weeks of pregnancy.

It includes approaching within 30 feet of a person or vehicle, without consent, “for the purpose of passing a leaflet or handbill to, displaying a sign to, or engaging in oral protest, education, or counseling with, that other person in a public way or on a sidewalk area.”

Moreover, the state attorney general’s interpretation of the law, in court filings and oral arguments, “is so vague that it is conducive to different and conflicting interpretations on what conduct is even prohibited by its terms,” Drozd wrote.

California Attorney General Rob Bonta’s office, which defended the law, did not immediately respond to the ruling.

Yet the groups said the law violated their First Amendment rights to freedom of speech, religion and association, and Fourteenth Amendment rights to due process and equal protection when it comes to opposing abortions.

But lawmakers included an exemption for picketing during a labor dispute, which Drozd said created another legal conflict.

“Free speech won the day not just for our client, Right to Life, but for every other speaker in California,” Alliance Defending Freedom Senior Counsel Denise Harle said in a statement. She said the law’s exemption for labor picketing created a “double standard in restricting pro-life outreach while permitting other types of speech.”

Democratic Sen. Richard Pan, a pediatrician, prominent vaccination proponent and author of the bill, said the judge “ultimately ruled against anti-vaccine extremists who attempt to obstruct and interfere with vaccination delivery.”

Crystal Strait, board chairwoman of bill proponent ProtectUS, said in an email that the ruling “is a step in finding balance between dangerous/reckless behavior of extremists and the first amendment.”

A second lawsuit in a different federal court, this one by Life Legal Defense Foundation ’s chief legal officer, Katie Short, makes a much broader free speech argument.

“Creating speech-free zones around every drug store, stand-alone health clinic, and supermarket in the state in order to re-assure the occasional customer seeking a vaccine of some kind is hardly a narrowly drawn restriction on speech,” the foundation’s lawsuit contends.

The foundation’s request for a restraining order in that case has yet to be decided.