The US Senate has voted through a crucial deal to raise the country’s debt ceiling with just days to spare.

Senators followed the House of Representatives in passing the agreement, which will be sent to Joe Biden to be signed into law before Monday’s deadline.

Had the cut-off date been missed, it could have led to the potentially catastrophic scenario where the world’s most powerful economy defaulted on its national debts.