A federal judge on Thursday granted final approval to DuPont’s $1.185 billion settlement with an estimated 14,000 public water providers across the country.