Treasury Secretary Janet Yellen said Thursday that the debate over the US debt ceiling amounts to “flirting with a self-inflicted crisis” but that everyone “breathed a sigh of relief” after Democrats and Republicans reached a deal to avert economic disaster.