The Detroit teachers’ union filed a lawsuit Thursday against the district calling for repairing “deplorable” conditions and removing the state-appointed emergency manager, Darnell Earley. The union seeks an “appropriately funded capital plan” and wants the district returned to local control.