The federal government and 49 state attorneys general have reached a landmark $25 billion agreement with the nation’s five largest mortgage servicers to address mortgage loan servicing and foreclosure abuses.