Teacher linked to child murderer wins unfair dismissal