Congress passed a measure Thursday to keep the government running for two more weeks, sending it to President Donald Trump for his signature.

The legislation, passed by voice vote in both chambers, would fund parts of the government at current levels through Dec. 21 and avert Friday's shutdown deadline. It would give lawmakers more time to hash out an agreement on spending and Trump's demand for $5 billion to fund his proposed border wall.

Congress has approved spending bills for five government agencies, such as the Departments of Defense and Health and Human Services. It has to fund seven more, including the Department of Homeland Security, which has emerged as the biggest sticking point as Congress tries to avoid letting funding for those agencies lapse.