President Joe Biden signed a spending bill late Saturday night after a last-ditch bipartisan deal to avoid a government shutdown.