Accommodation how? As the court pointed out, there was no reason to think assignment to a different supervisor would address the problem. The court's reasoning here seems very sound: there is no accommodation that the employer could make that would both be reasonable (e.g., isolating him in a separate facility with no other workers to avoid putting anyone else at risk is not reasonable) and sufficient to enable him to do his job. Therefore, he is not a qualified person under the law, and is not entitled to relief.
Don't make this harder than it is. If you can't show up and do your job without harming others or making credible threats to do so, you're not qualified. There is no reasonable way to accommodate that conduct.