The worker, who used THC medically and failed to pass a drug test, would have needed to request an accommodation while on the job, the judge said.