House Republicans will need a do-over on Wednesday to pass their tax reform plan after Democrats discovered that several provisions in the bill passed Tuesday by GOP lawmakers would violate Senate rules.

The embarrassing snag came just hours after jubilant Republican lawmakers and President Trump celebrated the flawed bill’s passage in the lower chamber.

“The Senate parliamentarian determined two minor provisions do not have budgetary impacts and had to be removed from the bill,” said a spokesperson for the House Ways and Means Committee.

The provisions would have violated the so-called Byrd rule, which means they were deemed to have a budgetary impact and therefore require a 60-vote threshold to pass. Once the out-of-bounds proposals are stripped from the bill, only a simple majority is needed for passage in the Senate.

Majority Leader Kevin McCarthy’s office said the House would reconsider the bill Wednesday morning and send it to the president for his signature at a ceremony yet to be scheduled.

Democrats said the Senate parliamentarian had found the troubling items that violated Senate rules, including one provision that would let families use tax-advantaged 529 accounts for home-schooling expenses. The other provision involved the criteria used to determine whether private universities’ endowments were subject to the legislation’s new excise tax.

The problem was revealed by Sens. Bernie Sanders (I-Vt.) and Ron Wyden (D-Ore.).

“In the mad dash to provide tax breaks for their billionaire campaign contributors, our Republican colleagues forgot to comply with the rules of the Senate,” the two said in a statement.

Despite the procedural hiccup, the bill was still expected to give Trump his first significant legislative victory, and he celebrated on Twitter shortly after the initial party-line vote of 227-203.

“Congratulations to Paul Ryan, Kevin McCarthy, Kevin Brady, Steve Scalise, Cathy McMorris Rodgers and all great House Republicans who voted in favor of cutting your taxes!” he tweeted.

Ryan, the House speaker, hailed the GOP tax package earlier.

“Today, we give the people of this country their money back,” he said after the bill, which cuts roughly $1.5 trillion in taxes, was passed.

But a woman shouted from the House gallery: “You’re lying, you’re lying! Only the rich people are going to get any money!”

She was quickly escorted out.

Many New Yorkers and residents of other high-income, high-tax states like New Jersey and Connecticut might see their taxes remain flat or even rise because of the way the $1.5 trillion bill is structured — which prompted a fierce debate on the House floor between two Empire State lawmakers, Queens Democrat Joe Crowley and upstate Republican Tom Reed.

In a fervent floor speech before the vote, Crowley called the tax bill a “scam” that will benefit the Trump family and corporate special interests. He shook his finger at the Republicans and asked how they could vote for the bill with a “clear conscience.”

“Is this bill going to make life better for cops, firefighters, nurses, truck drivers, students, veterans, teachers and shift workers? Hell no!” Crowley yelled.

Reed, who helped write the legislation as a member of the House Ways and Means Committee, rose to shoot down Crowley.

“All the people you referenced in the middle class, I say hell yes!” Reed said. “They are going to be helped by this bill.”

Crowley tried to interrupt, but Reed refused to yield the floor.

“It’s going to let them keep their money in their pocket that they earned,” Reed said.

Ryan dismissed multiple polls that show a majority of Americans oppose the bill.

“This is the greatest example of a promise being made and a promise being kept,” he said, predicting that “results are going to make this popular.”

The tax plan won’t affect returns covering the 2017 tax year.

Officials said taxpayers would start noticing changes next year when their paychecks are different because of new withholding rates.

The plan would double the standard deduction to $12,000 for single filers and around $24,000 for couples, while the top bracket drops from 39.6 percent to 37 percent.

The corporate tax rate would fall from 35 percent to 21 percent — a percentage point higher than Trump had called for but a dramatic reduction that Republicans say will propel the economy and remove an unfair burden on corporate America.

A dozen House Republicans voted against the tax overhaul, many from New York and New Jersey, where residents could be hardest hit by the cap on deductions for state and local income, sales and property taxes.

With AP