As the Fed stepped up its efforts to prop up the faltering financial system , it bought large amounts of securities from the U.S. Treasury and other entities , including mortgage-backed securities held by government-sponsored home loan financing companies Fannie Mae and Freddie Mac , which were taken over by the federal government during the crisis .