Canada’s first accessibility commissioner has resigned during a legal battle with the federal government involving an external investigation into allegations he mistreated staff.