The Goldman Sachs Group Inc. (GS) said Thursday that it agreed to a $5.1 billion settlement to resolve U.S. and state claims related to securitization, underwriting and sale of residential mortgage-backed securities from 2005 to 2007. The agreement in principle will reduce earnings for the fourth quarter of 2015 by about $1.5 billion on an after-tax basis.