According to an A.P. analysis, well over 2,200 dams in the US are in dire repair after decades of deferred maintenance.