The group of teachers sued the city after they were fired.