The US Homeland Security Department has avoided a partial shutdown as Congress passed a one-week funding extension, hours before a midnight deadline.
The House of Representatives voted 357-60 in favour of the short-term bill after it had been passed in the Senate.
President Barack Obama, who said he would back a short-term deal to avert a shutdown, signed it shortly afterwards.
It ensures the department's 250,000 employees will be paid while a longer-term funding agreement is discussed.
The two-thirds majority vote was reached about two hours before the midnight (05:00 GMT Saturday) deadline.
Earlier, Republicans had rejected a similar three-week extension after provisions against President Obama's immigration plan were dropped.
The one-week deal was backed by a majority of Democrats despite many of them voting against the earlier bill in the hope that a longer-term deal could be agreed.
The move came shortly after President Obama had spoken by phone to Democratic leaders in a bid to avert the partial department closure.
The Department of Homeland Security is responsible for securing US borders, airports and coastal waters.
About 200,000 "essential" department employees would have continued to work without pay if the agency's funding had not been secured.
No comments