New law will help cities plan better while reducing pollutants in wastewater