WASHINGTON (AP) — Goldman Sachs has agreed to pay $3.15 billion to resolve claims that it misled U.S. mortgage giants Fannie Mae and Freddie Mac about risky mortgage securities it sold them before the housing market collapsed in 2007.

The Federal Housing Finance Agency, which oversees Fannie and Freddie, announced the settlement Friday with the Wall Street powerhouse.

READ MORE: Gervonta 'Tank' Davis Keeps Perfect Record Intact With Unanimous Decision Over Isaac Cruz

New York-based Goldman Sachs sold the securities to the companies between 2005 and 2007.

READ MORE: Booster Shots Are Encouraged Now More Than Ever

“We are pleased to have resolved these matters,” said Goldman Sachs Group Inc. general counsel executive Gregory Palm in a statement.

The settlement is the latest federal government settlement over actions related to the financial crisis that struck in 2008. The crisis, triggered by vast sales of risky mortgage securities, plunged the economy into the deepest recession since the 1930s.

MORE NEWS: The Ravens Gambled And It Cost Them

(Copyright 2013 by The Associated Press. All Rights Reserved.)