Plan to create new classifications for special schools sparked a legal challenge by parents that was backed by headteachers.