Democrats are considering using a December federal funding deadline to pressure President Donald Trump to end the US-Israel war on Iran, but the strategy could trigger a government shutdown. The effort follows the party’s midterm-election gains, which came as public anger over the war grew.

After winning seats in both chambers, Democrats have said they will oppose new war funding when they take control of Congress on January 3. Some lawmakers want to act sooner, using a continuing funding package due by December 11 as leverage. Failure to pass it would halt funding for federal agencies and trigger a shutdown from December 12.

Representatives Yassamin Ansari and Ro Khanna urged Democrats to reject any package that does not bar funds for offensive operations in Iran. In a joint statement last week, they called for “not another cent of taxpayer money” to go towards prolonging the conflict. “The American people were loud and clear on November 3rd: they want an immediate end to Donald Trump’s reckless war in Iran,” they wrote. “Passing such a measure would defy the demands of Americans who want this war to end – now.”

Khanna said in an accompanying video that Congress had used a similar approach to end the Vietnam War. Senator Chris Van Hollen, who is seeking the Senate majority leader position in the new Congress, said last week that bills “must include language that restricts the Trump Administration from using appropriated funds to continue his war against Iran”. Senators Tammy Duckworth and Michael Bennet, and independent Bernie Sanders, also signed the statement.

Democrats have tried several times to pass resolutions ending the US-Israel war on Iran, but have not succeeded. The funding strategy is drawing comparisons with the Vietnam War, when Congress indirectly helped bring US involvement to an end by cutting off financial support.

The US backed South Vietnam in the 1955-1972 war against communist North Vietnam, initially sending military advisers and aid. In 1964, after a US Navy contingent in the Gulf of Tonkin alleged direct attacks by North Vietnam, Congress passed a resolution giving President Lyndon B Johnson authority to send troops without declaring war. The US eventually deployed more than 500,000 soldiers and carried out a scorched-earth bombardment.

As the war dragged on, high casualties and declining morale among US troops contributed to growing opposition. Reports of US Army atrocities, including mass rape and massacres, further weakened public support. Congress repealed the Gulf of Tonkin Resolution in 1973 and ordered US forces to withdraw.

In June 1973, Congress passed the Case-Church Amendment, barring approved federal funds from going directly or indirectly to the war. More than two-thirds of lawmakers in both chambers supported it, making it impossible for President Richard Nixon to override with a veto. Congress also passed the War Powers Resolution, requiring congressional approval before a president declares war except in emergencies. Nixon vetoed it, but Congress overrode his veto in November 1973. South Vietnam’s government in Saigon fell in April 1975 after US funding was cut off.

Not all Democrats support a shutdown. Representative Rosa DeLauro, who will chair the House Appropriations Committee in the new Congress, told CBS News before the midterms that she supported “cutting off the funds” for the war. But she has not endorsed a shutdown and said she would prefer a short-term funding extension to a package lasting a year.

“I think that the American people would like to see us end the war,” DeLauro told reporters on Wednesday. “I also believe that the American people may not believe that shutting the government down ends the war.” House Democratic leader Hakeem Jeffries, likely to become speaker in January, and Senate Minority Leader Chuck Schumer have not taken a position.

Trump could veto a funding measure. Republicans control Congress for another six weeks, and Democrats lack the two-thirds majority needed to override a veto in either the current or next Congress. The Senate threshold is 67 votes when all 100 senators participate; Democrats are set to hold a 56-44 majority, 11 votes short. In the 435-member House, an override requires 290 votes, while Democrats have secured 257 seats for the next Congress.

Democrats have forced more than 15 war powers votes in both chambers in recent months, but none has passed. In September, seven House Republicans joined Democrats on a resolution rebuking Trump, which passed 220-204. Senate Republicans blocked it last week in a 51-48 vote. Republicans have acknowledged the war’s high costs but argued the US needs to “finish the job”.