Teacher sacked over sex and race slurs wins five-year battle to clear her name