More than five years after it was legalized in New Jersey, medical marijuana is creating a dilemma for employers, as drug-free workplace policies clash with obligations to accommodate workers’ medical needs.

Some employers have had to deal with the issue head-on, as workers who treat chronic illnesses with medical marijuana have filed a handful of wrongful-termination suits after they were fired for failing drug tests.