Government blocks attempt to dilute religious teaching in academies