Water systems in need of $9B to meet codes