Sewage discharges, broken equipment prompt state takeover of city wastewater treatment plant