Other settlements included a 2010 promise to forgive up to $3 billion in principal for Countrywide borrowers in Massachusetts; an agreement last year to pay $600 million to former Countrywide shareholders to settle a securities fraud lawsuit; and billions of dollars in payments to Fannie Mae and Freddie Mac to settle demands for buybacks of flawed home loans.