For decades, scientists have studied the effects that livestock farms with large animal concentrations in Iowa and other states have on regional water quality, as increasing amounts of waste flow into rivers and groundwater. Now activists and some lawmakers say emergency measures are needed to stop toxic algae blooms in Lake Erie, dead zones in the Gulf of Mexico and Chesapeake Bay, and threats to drinking water in rural communities. In some states, lawmakers worry about the future of smaller family farms.