Residents are suing the operator of a wastewater treatment plant, accusing it of illegally discharging more than a billion gallons of raw sewage.