The settlement of the 16-year-long process requires the operators of the dam to invest $340 million into environmental improvements.