U.S. government funding was set to lapse at least temporarily Saturday – the first anniversary of President Donald Trump's inauguration – as Congress failed in its last-minute efforts to pass a spending bill before a midnight deadline.

Lawmakers scrambled to find their way through a Senate impasse but could not get a stopgap spending bill through both chambers of Congress. Talks were ongoing among congressional leaders and the White House about how to handle not only government funding but also the popular Children's Health Insurance Program and immigration.

After a House-passed temporary funding bill appeared to fizzle out in the Senate on Friday night, senators from both caucuses were negotiating on the chamber's floor as the clock hit midnight.

Earlier Friday, the White House signaled that it could reach a funding deal with congressional leaders as soon as Saturday.

Yet, as funding looked set to lapse at midnight, White House press secretary Sarah Sanders released a scathing statement blaming Democrats for the shutdown.

"We will not negotiate the status of unlawful immigrants while Democrats hold our lawful citizens hostage over their reckless demands. This is the behavior of obstructionist losers, not legislators. When Democrats start paying our armed forces and first responders we will reopen negotiations on immigration reform," the statement said.

Saturday will mark the first shutdown when the same party controls Congress and the White House. Republicans currently have majorities in the House and Senate and control the White House.

The government last shut down for 16 days in 2013.