It’s gonna depend on how each state phrases the law. It just became legal in Minnesota and the law specifically states that employers cannot discriminate against employees who test positive on a drug test, and employers would have to prove it was used on the job to terminate an employee.
Other states might leave provisions like that out, on purpose or otherwise.