'Trojan horse' teacher allowed to return to classroom