President Barack Obama says Republican and Democratic leaders in the House and Senate have reached an agreement with him to raise the government's debt ceiling and avoid a default.