To reduce nitrogen loads, the Bay Area is facing an overhaul of wastewater plants to the tune of $16B. Sea level rise calls for other retrofits. The two could require the heftiest investment in clean water infrastructure in decades.