Also settling was Countrywide’s former president, David Sambol, who will pay more than $5.5 million; and Countrywide’s former chief financial officer, Eric Sieracki, who will pay $130,000.

U.S. District Judge John Walter in Los Angeles approved the deal on Friday, just days before trial was scheduled to open. He called the settlement “fair and adequate, reasonable and in the public interest.”