Treasury Secretary Janet Yellen warned that defaulting on the debt ceiling would lead to financial catastrophe.