Faith schools which discriminate against potential pupils and staff should no longer be allowed state funding, the Association of Teachers and Lecturers (ATL) has said.