The Affordable Care Act was passed through normal legislative processes and defended by the judicial system. It has also survived an almost constant legislative assault since then.
Shutting down the government and threatening default over a piece of legislation you don't like is not part of the normal legislative process. It's radical. And you can even argue that with cute little last minute rule changes like HR 368 that it's borderline undemocratic as well. The American people may have mixed opinions on the Affordable Care Act, but I highly doubt they wanted the federal government shut down over it.
By refusing to bring a bill to a vote unless a majority of his party openly supports it, Boehner is explicitly preventing compromise.
The power of the purse is allocated to the house.
Constitution trumps amendments (but only in certain high-up courts), which trumps normal law, which trumps contracts (written "generally" before oral ones), which trumps common sense ("what a good house father would do"). The sum total of all these things form "the law" as viewed from the perspective of a person (so yes, you are legally obligated to "generally be good" even when the law doesn't explicitly require it (e.g. help people involved in accidents))
Basically since the government debt obligations are contracts, while the debt ceiling is a law, Obama has no choice in the matter : any lawful payments (like medicare, ...) have to be fulfilled before any contract is paid. So barring a new law (the "agreement" the news talks about), on Okt 17, the US should default. Maybe Obama can delay it a few days, but certainly no more.
Please note that congress is doing exactly what it was designed to do. Congress, whether you agree with it or not, represents the will of the people of the united states and Obama is ignoring it, refusing to do so much as negotiate (or so claims congress, and I see no reason to doubt their claims). He knew years in advance that this was coming and gambled. Every executive who has fought congress on this has failed, again something Obama is perfectly aware of (it featured prominently in his education for one thing, hell, it's one of the main forces that brought us democracy in the first place).
In case someone doesn't know this : Obama's a lawyer. Lawyers tend to be lawyers first, people second. And he has a history of this sort of thing : expect him to follow the law over common sense.