Debt ceiling plan passes the House and the Senate, avoiding default