Just to clarify, both TARP and Emergency Economic Stabilization Act were signed into law in October 2008 before Obama was even elected president.
Not saying he wouldn't have also signed the acts but the crisis was well underway by the time Obama was in the White House.