Many Republican voters complain that politicians never get things done. So it’s worth highlighting a bipartisan deal in the Senate that would benefit the city of Flint and water systems nationwide—if obstructionists would get out of the way.

Last month Democrats refused to let the Senate energy bill move forward unless it included money to help Flint deal with its lead-contaminated water. Michigan SenatorsDebbie Stabenow and Gary Peters demanded a $600 million emergency appropriation—a blank check—to pay for infrastructure improvements and public health measures.

Republicans balked, noting that Flint still lacked a plan to fix its corroded pipes. Like many older cities, Flint doesn’t know where all of its lead service lines are located. Water systems in the other 49 states also need to remedy contamination and upgrade their systems.

Though the Environmental Protection Agency shares blame for the Flint debacle, Democrats attacked Republicans as heartless. Harry Reid declared that “one-hundred thousand people in Flint, Michigan, have been poisoned, and Republicans do nothing.” Republicans often play into Democrats’ trap, but not this time.

Oklahoma Republican Jim Inhofe deserves credit for negotiating a deal with Ms. Stabenow that allays GOP objections while achieving Democratic objectives. The agreement appropriates $70 million in loan subsidies for water projects nationwide including flood control, water reclamation and wastewater improvements.

Congress created the loan program in 2014 to help cash-strapped municipalities pay for critical repairs, and the $70 million credit subsidy would leverage between $700 million and $4.2 billion in financing. The EPA could only administer the loans to creditworthy projects with dedicated resources for repayment.

An additional $100 million in loans and grants would be available to states where the President has declared a public health emergency. To tap the funds, a state would have to submit a report to the EPA describing how the money would be used.

Here’s the best part: The cost would be offset by rescinding $250 million in subsidies for new Advanced Technology Vehicles Manufacturing (ATVM) loans that have in the past gone to Ford, Tesla and (the now bankrupt) Fisker Automotive. This is a worthy trade. In 2011 Senate Democrats rejected an effort by House Republicans to apply ATVM loan subsidies to Federal Emergency Management Agency disaster relief.

But no good deal goes unpunished. Utah’s Mike Lee— Ted Cruz’s surrogate in the Senate—has put a hold on the bill because he says “relief and repair efforts are already in the works.” That may be true, but Congress is going to spend some money on Flint, and this is a chance to neutralize a political vulnerability while reducing corporate welfare.

Mr. Lee’s protests have also emboldened ransom-seeking by Florida Democrat Bill Nelson, who last week placed a hold on the bill to force Republicans to drop an amendment that increases federal-state revenue sharing for offshore oil drilling. Mr. Nelson fears more revenues would encourage states to expand drilling offshore. Well, yes.

Republicans and Democrats have a chance to show voters that they can address a genuine problem without adding to the deficit. It would be a pity to let this compromise go to waste.