Barack Obama also faced huge challenges upon entering the White House, despite his Democratic party having had huge majorities in both houses of Congress.