Goldman Sachs Group has reached an agreement in principle to resolve the ongoing investigation of the Residential Mortgage-Backed Securities Working Group of the U.S. Financial Fraud Enforcement Task Force.

The agreement in principle will resolve actual and potential civil claims by the U.S. Department of Justice, the New York and Illinois Attorneys General, the National Credit Union Administration (as conservator for several failed credit unions) and the Federal Home Loan Banks of Chicago and Seattle, relating to the firm’s securitization, underwriting and sale of residential mortgage-backed securities from 2005 to 2007.

Goldman Sachs said the agreement in principle will reduce earnings for the fourth quarter of 2015 by approximately $1.5 billion on an after-tax basis.

Under the terms of the agreement in principle, the firm will pay a $2.385 billion civil monetary penalty, make $875 million in cash payments and provide $1.8 billion in consumer relief. The consumer relief will be in the form of principal forgiveness for underwater homeowners and distressed borrowers; financing for construction, rehabilitation and preservation of affordable housing; and support for debt restructuring, foreclosure prevention and housing quality improvement programs, as well as land banks.

In a related report, Bloomberg notes that authorities have already penalized the three biggest banks – JPMorgan Chase, Bank of America and Citigroup – more than $37 billion in the form of cash and consumer relief.