Fending off a US default, the Senate gave final approval late Thursday to a debt ceiling and budget cuts package, grinding into the night to wrap up work on the bipartisan deal and send it to President Joe Biden's desk to become law before the fast-approaching deadline.