Flint will replace at least 18,000 lead or galvanized-steel water lines by 2020, and the state will pick up the bill with state and federal money, according to the settlement filed in federal court. More than 700 water lines already have been replaced and work is ongoing, but the agreement would rid Flint's roughly 100,000 residents of uncertainty over how to pay for the enormous task.