US senators agree to extend debt ceiling to avoid default

The deal comes less than two weeks before the limit on US government debt was due to be reached.