School retracts letter barring pupils from exams