WASHINGTON — A must-do bill to prevent the government from shutting down this weekend and to fund the fight against the Zika virus is stalled in the Senate, held up by bipartisan opposition as the clock ticks toward a Friday deadline.

Democrats, demanding money so Flint, Mich., can address its lead-contaminated water crisis, opposed the measure in a Senate test vote Tuesday. So did a dozen of the Senate's most conservative members.

The 45-55 vote ties up the stopgap funding bill — for now at least. The GOP defections left Senate Majority Leader Mitch McConnell, R-Ky., short of a majority, much less the 60 votes needed to clear a filibuster hurdle.

McConnell is looking for a way out of the legislative box that doesn't include capitulating on Flint, which GOP leaders fear would start a revolt among House tea party conservatives.

Instead, senior congressional leaders are scrambling for a compromise solution on the Flint water issue that would satisfy Democrats. The Senate has passed $220 million worth of aid to Flint and other cities grappling with lead-tainted water and want the package added to the temporary spending bill.

Republican leaders are promising to address the Flint issue after the election in a separate water resources bill, but Democrats refuse to take them at their word.

“?‘Trust me, we will consider Flint later' — that's like nothing to me,” said House Minority Leader Nancy Pelosi, D-Calif.

But House Majority Leader Kevin McCarthy, R-Calif., said talks continued. “There might be an element (on Flint) we could do.”

Democrats say it's unfair that the water crisis in Flint has gone on for more than a year with no assistance, while Louisiana and other states are getting $500 million for floods that occurred last month. Democrats have played a strong hand in the negotiations and know they have leverage because Republicans controlling the House and Senate are eager to avoid a politically harmful shutdown at midnight Friday.

“Democrats have been clear that Congress should not leave Flint and other lead-tainted communities out of any (stopgap spending) negotiation that includes emergency disaster funding,” said Senate Minority Leader Harry Reid, D-Nev., and other top Democrats in a Tuesday letter to McConnell.

McConnell called the Democratic position as “no Flint, no flood” and indicated he is considering dropping the flood aid. Both sides hope to avert that.

The stopgap spending bill would keep the government running through Dec. 9 and provide $1.1 billion in long-delayed funding to fight the spread of the Zika virus and develop a vaccine and improved tests to detect it. Zika can cause grave birth defects.

McConnell has made numerous concessions in weeks of negotiations on the measure, agreeing to drop contentious provisions tied to Zika funding that led Democrats to filibuster prior Zika measures this summer and earlier this month.

A provision to make Planned Parenthood ineligible for new anti-Zika funding for Puerto Rico was dropped, as was a provision to ease pesticide regulations under the Clean Water Act. A $400 million package of spending cuts added to the measure is no longer controversial.

The measure also includes a popular full-year spending bill that provides a 4 percent budget increase for the Department of Veterans Affairs.

“Can it really be that Democratic leaders have embraced dysfunction so thoroughly that they'd tank a noncontroversial, 10-week funding bill over — well, what exactly?” McConnell asked, as he opened the Senate on Tuesday.

Republicans say the Flint issue will be handled in a separate measure to authorize water development projects.

House Speaker Paul Ryan, R-Wis., said Tuesday that the water development bill “is the better place to address this.”

The White House poked at Ryan for excluding it from the water projects bill.

“The speaker of the House says he opposes adding funding for Flint to the continuing resolution and believes that it should be handled in the water resources bill. But it's not included in the water resources bill that's advancing through the House,” said White House press secretary Josh Earnest. “And then he has the nerve to suggest that it's Democrats who are the ones causing problems.”