Health care worker Katelin Noffsinger told a potential employer that she took medical marijuana to deal with the effects of a car accident, but when a drug test came back positive, the nursing home rescinded her job offer anyway.

A federal judge last month ruled that the nursing home, which had cited federal laws against pot use, violated an anti-discrimination provision of the Connecticut’s medical marijuana law.

It was the latest in a series of clashes between U.S. and state laws around the country that came out in favor of medical marijuana users trying to keep or obtain jobs with drug-testing employers.

The Connecticut decision was the first ruling of its kind in a federal case and followed similar recent rulings against employers by state courts in Massachusetts and Rhode Island. Earlier rulings had gone against medical pot users in employment cases by state supreme courts including those in California, Colorado, Oregon and Washington over the past few years.

Advocates hope new the new decisions are a signal of growing acceptance of cannabis’ medicinal value.

Noffsinger, of Manchester, sued Bride Brook Health & Rehabilitation Center in Niantic in 2016. She had been offered, and accepted, a job as recreation therapy director at the nursing home, contingent on her passing a drug test.

She told the nursing home that she took synthetic marijuana pills – legally under state law and only at night – to treat the post-traumatic stress disorder she developed after the 2012 car accident. But the company rescinded the job offer after the drug test came back positive for THC, the chemical in marijuana that gets people high.

As a federal contractor, the nursing home worried that it could be cut off from that revenue if it employed somebody who tested positive.

U.S. District Judge Jeffrey Meyer in New Haven ruled on Sept. 5 that Bride Brook discriminated against Noffsinger based solely on her medical marijuana use in violation of state law. He denied her request for punitive damages. The case is now heading to a trial on whether Noffsinger should receive compensatory damages for lost wages from not getting the job.

In his ruling, Meyer said the federal Drug Free Workplace Act, which many employers including federal contractors rely on for policies on drug testing, does not actually require drug testing and does not prohibit federal contractors from employing people who use medical marijuana outside the workplace in accordance with state law.

The decision will likely be used in arguments in similar cases elsewhere, said Fiona Ong, an employment attorney with the Baltimore firm of Shawe Rosenthal.

“This is a very significant case that throws the issue in doubt for many of these federal contractors,” Ong said. “It’s certainly interesting and may be indicative of where the courts are going with this.”

Only nine states including Connecticut specifically ban employment discrimination against medical marijuana users, who could continue to face difficulties in obtaining or keeping jobs in the 41 other states, employment lawyers say.

In Massachusetts, the state’s highest court ruled last year that a sales and marketing company wrongly fired a worker after her first day on the job after she tested positive for marijuana, which she used under the state’s medical marijuana law to treat her Crohn’s disease. Also last year, in Rhode Island, the state Supreme Court said a college student was wrongly denied an internship at a fabric company where officials refused to hire her after she acknowledged she could not pass a drug test because she used medical marijuana.

In both cases, the two women told the companies during the hiring process that they used medical marijuana, but would not consume it while on the job.

The American Bar Association called the Connecticut, Massachusetts and Rhode Island cases “an emerging trend in employment litigation” and cautioned employers to consider state medical marijuana laws when analyzing their drug use and testing policies.