US President Donald Trump signs a bill for border funding legislationin as Vice President Mike Pence looks on in the Oval Office at the White House in Washington, DC, on July 1, 2019.Nicholas Kamm | AFP | Getty ImagesPresident Donald Trump signed a temporary spending bill Friday to avoid another government shutdown, a White House spokesman said. The so-called continuing resolution will keep the government running through Nov. 21. It will keep spending at current levels and head off a lapse in funding that would have occurred at the end of the month. The House and Senate both passed the measure on a bipartisan basis to give lawmakers more time to decide the specific spending levels for departments. They have to come to an agreement over funding amid another dispute over border security and military funding. Congress already passed legislation to suspend the federal debt ceiling and set government spending levels for two years. Lawmakers have to separately pass bills allocating money to specific agencies, a process that has tripped them up.Subscribe to CNBC on YouTube.