Judge approves deal to replace water lines in at least 18,000 homes...