The New York State Legislature passed a law requiring an oath of allegiance from all teachers.