Republican senators struck down a bill that would have temporarily reopened the federal government on Thursday, falling short of the 60 votes required to defeat a GOP filibuster.

The measure would have reopened federal agencies through 8 February to allow time for negotiations, an approach Republican leadership tried last month before being undercut by Donald Trump.

The president is now refusing to reopen the government until he gets a deal on funding for his long-sought border wall.

Polls have shown that the public is blaming Mr Trump for the shutdown and his approval numbers have sunk as the impasse drags on. The partial government shutdown is now in its 34th day. Federal workers are on the verge of missing another paycheck Friday.

Democrats also blocked Mr Trump’s request for $5.7bn to construct the wall, with a partisan 50-47 vote. The $350bn government-wide funding bill represented the first attempt by Republicans controlling the Senate to reopen the government since the shutdown began.

Trump shuts down US government over Mexico border wall – in pictures Show all 15 1 /15 Trump shuts down US government over Mexico border wall – in pictures Trump shuts down US government over Mexico border wall – in pictures Federal workers and contractors rally against the partial federal government shutdown Getty Images Trump shuts down US government over Mexico border wall – in pictures The US Capitol on the first morning of a partial government shutdown in Washington EPA Trump shuts down US government over Mexico border wall – in pictures Federal workers and contractors rally against the partial federal government shutdown Getty Trump shuts down US government over Mexico border wall – in pictures President Trump speaks with children who called the North American Aerospace Defense Command Santa tracker in the State Dining Room of the White House. He earlier in the day, tweeted that he was 'all alone in the White House' waiting for Democrats to make a deal on border security EPA Trump shuts down US government over Mexico border wall – in pictures Furloughed federal workers pick up free food at a pop-up store of Kraft Heinz Getty Images Trump shuts down US government over Mexico border wall – in pictures Hundreds of federal workers and contractors rally against the partial federal government shutdown Getty Trump shuts down US government over Mexico border wall – in pictures A pedestrian walk past the U.S. Capitol ahead of a possible partial government shut down in Washington, U.S., December 20, 2018. REUTERS/Joshua Roberts JOSHUA ROBERTS Reuters Trump shuts down US government over Mexico border wall – in pictures From left, House Majority Leader Steny Hoyer, Senate Minority Leader Chuck Schumer, Sen. Dick Durbin and Speaker of the House Nancy Pelosi walk to speak to reporters after meeting with President Donald Trump about border security in the Situation Room of the White House. Trump declared he could keep parts of the government shut down for "months or even years" as he and Democratic leaders failed in a second closed-door meeting to resolve his demand for billions of dollars for a border wall with Mexico Evan Vucci AP Trump shuts down US government over Mexico border wall – in pictures Federal workers and contractors rally against the partial federal government shutdown Getty Images Trump shuts down US government over Mexico border wall – in pictures A sign alerts visitors to the closure of the National Archives on the fifth day of a partial government shutdown EPA Trump shuts down US government over Mexico border wall – in pictures Hundreds of federal workers and contractors rally against the partial federal government shutdown Getty Images Trump shuts down US government over Mexico border wall – in pictures Visitors read signs announcing the closure of the White House Visitor Center EPA Trump shuts down US government over Mexico border wall – in pictures President Donald Trump speaks during a round-table discussion on border security and safe communities with State, local, and community leaders in the Cabinet Room of the White House Getty Images Trump shuts down US government over Mexico border wall – in pictures A sign alerts visitors to the closure of the White House Visitor Center on the first day of a partial government shutdown EPA Trump shuts down US government over Mexico border wall – in pictures Furloughed federal workers show their IDs for entering a pop-up store of Kraft Heinz Getty Images

The measure would have also provided three years of continued protection against deportation for 700,000 immigrants brought to the US illegally as children.

House Speaker Nancy Pelosi said on Thursday she was willing to meet with the president “anytime” to discuss ending the partial government shutdown.

The California Democrat said House Democrats are putting together a new border security package that could provide a step toward a compromise. It will include money for fencing, technology, personnel and other measures, but not Mr Trump’s proposed wall.

The president responded in real time on Twitter saying, “very simply, without a Wall it all doesn’t work.... We will not Cave!”

Twin defeats might spur the two sides into a more serious effort to reach an agreement. With the impact of the shutdown becoming increasingly painful, lawmakers say they’re willing to compromise on border security and immigration policy.

Additional reporting by AP. Read below for our live coverage on the 34th day of the US government shutdown