In 2006 when George W. Bush was president the Republicans controlled both the House and the Senate. Votes were being made on a crucial pieces of legislation one of which was raising the debt-ceiling. Here is what then Senator Obama said on the Senate floor;
“The fact that we are here today to debate raising America’s debt limit is a sign of leadership failure. Leadership means that the buck stops here. Instead Washington is shifting the burden of bad choices today onto the backs of our children and grandchildren. America has a debt problem and a failure of leadership. America deserves better. I therefore intend to oppose the effort to increase America’s debt limit.”
When pressed about his 2006 vote, Obama explained his vote was not needed and he was simply making a point about fiscal responsibility.