Either measure would reopen federal agencies and pay 800,000 federal workers who are days from missing yet another paycheck. Republicans would couple ending the 34-day shutdown with $5.7 billion for President Donald Trump's border wall and revamping immigration laws. Democrats would reopen agency doors for three weeks while bargainers seek a budget accord.

Twin defeats might spur the two sides into a more serious effort to strike a compromise. Almost every proposal needs 60 votes to advance in the Senate, which is under 53-47 Republican control.

"It's hard to imagine 60 votes developing for either one," said Sen. Roy Blunt, R-Mo. GOP moderates such as Lisa Murkowski of Alaska and Susan Collins of Maine are expected to vote for the Democratic plan, as is Cory Gardner of Colorado, one of the few Republicans representing a state carried by Hillary Clinton in 2016.

With the impacts of the shutdown becoming increasingly painful, however, lawmakers on both sides were trumpeting their willingness to compromise in the battle over border security and immigration issues such as protection against deportation for so-called Dreamer immigrants brought to the country illegally as children.

"It's clear what the president wants. It's clear what we want. If you have a negotiation, both parties are going to put on the table what they want," said House Majority Leader Steny Hoyer, D-Md. "By definition a successful negotiation gets to a place where both sides feel they got something, right?"

But just starting negotiations is a tripping point. Democrats insist on opening the government first rather than reward Trump's tactics, while Republicans warn that immediately reopening the government would give Democrats too much leverage in any talks.

"No shutdown. No hostages," said Rep. Ruben Gallegos, D-Ariz. "You get nothing in return until you release the hostages."

Trump's ex-chief of staff, John Kelly, joined several other former Homeland Security secretaries in signing a letter urging Trump and his Democratic rival to end the shutdown. House Democrats slated a Thursday morning hearing on the effects of the shutdown on the DHS.

The partial shutdown began just before Christmas after Trump indicated that he wouldn't sign a stopgap spending bill backed by top Republicans like Majority Leader Mitch McConnell, R-Ky., who shepherded a bill funding the government up to Feb. 8 through the Senate. The House passed a plan with wall funding as one of the last gasps of the eight-year GOP majority.

On Thursday, almost five weeks later, House Democrats continued work on a package that would ignore Trump's demand for $5.7 billion for a wall with Mexico and would instead pay for other ideas aimed at protecting the border.

Details of Democrats' border security plan and its cost remained a work in progress. Party leaders said it would include money for scanning devices and other technological tools for improving security at ports of entry and along the boundary, plus funds for more border agents and immigration judges.

"If his $5.7 billion is about border security, then we see ourselves fulfilling that request, only doing it with what I like to call using a smart wall," said No. 3 House Democratic leader Jim Clyburn, D-S.C.

A poll by The Associated Press-NORC Center for Public Affairs Research released Wednesday was the latest indicator that the shutdown is hurting Trump with the general public. While his approval among Republicans remains strong, just 34 percent of Americans like his performance as president and 6 in 10 assign a great deal of responsibility to him for the shutdown, around double the share blaming Democrats.

The Senate GOP bill would temporarily shield from deportation 700,000 "Dreamers," protections Trump has tried terminating. He's also offered temporary protections for people who fled violence or natural disasters in several countries — another program the president has curtailed.

With Democrats eager to show they're trying to end the impasse, the House used mostly party-line votes Wednesday to approve one measure reopening government agencies through February. By a similar tally, the chamber voted to finance most shuttered agencies through September.

Growing numbers of House Democrats say the party should show where it stands on border security.

"Right now it's a vacuum and the president is offering fake plans to stop drug smuggling," said Rep. Peter DeFazio, D-Ore. Offering a Democratic alternative "helps the possibility of beginning a real negotiation," he said.