Failed sewer plants cost state millions