The party-line Senate vote came hours after the House on Tuesday approved the sweeping legislation in a 227-203 vote.

The Senate vote was briefly interrupted by protesters, who were removed from the Senate chamber after yelling at senators from the gallery, including chants of "kill the bill, don't kill us" and "you're fired."

But the House will have to vote again on Wednesday to get the bill to the White House because of a ruling by the Senate parliamentarian that two provisions in the House-passed bill didn't comply with budget rules that Republicans are using to prevent Democrats from mounting a filibuster.

The eleventh hour procedural snag amounted to a small win for Democrats on a day when Republicans were winning the war over the tax legislation, which would lower the corporate tax rate from 35 percent to 21 percent.

“[It will] deliver historic tax relief to American families. It will help put our country on a trajectory toward more innovation and better paying jobs. It will repeal an unfair tax at the center of ObamaCare and will help America achieve greater energy security,” he said.

Final passage on Wednesday would amount to an early Christmas present for Trump after an often frustrating year for Republicans on Capitol Hill, who repeatedly fell short in their goal of repealing ObamaCare.

The tax-cut bill, however, does much to assuage the bruised feelings of Republicans. Besides resetting the tax code, the bill would open the Arctic National Wildlife Refuge to drilling and repeal the individual mandate to buy insurance under ObamaCare — a significant achievement for Trump.

The legislation caps off months of behind-the-scenes negotiations and public haggling as Republicans sought to enact major policy changes that the party has been seeking for years.

The bill would temporarily lower rates for individuals and families. It would also reduce tax breaks important to states and cities with higher taxes by placing a $10,000 cap on the state and local tax deduction.

Most of the bill's changes for individuals expire in 2025, though Republicans have predicted that lawmakers in the future will extend them — a move that would likely spike the cost of the legislation.

The Joint Committee on Taxation, Congress’s official scorekeeper, estimated that the tax plan will add nearly $1.5 trillion to the deficit over the next decade. The committee has estimated that previous versions of the bill would cost about $1 trillion when economic growth is taken into account.

Republicans dispute those estimates, predicting the costs of the bill are overstated.

They argue the bill will boost an already healthy economy, leading to new investments by U.S. companies and preventing jobs from being outsourced to other countries.

But Republicans have struggled to beat back perceptions that their proposal primarily benefits corporations and the wealthy.

A CNN poll released Tuesday found that 55 percent of respondents opposed the GOP tax plan, and two-thirds believe it will benefit the wealthy more than the middle class. A separate Wall Street Journal–NBC News poll found that 41 percent of Americans think the plan is a bad idea, an uptick from 35 percent in October.

McConnell, asked about poor polling, said Republicans were “just beginning to make the argument to the American people.”

“Look at the stock market, look at the optimism. I think the American people are going to be able — are going to begin to feel that the country is moving again after eight years of relative stagnation,” he told reporters.

But Republicans were repeatedly interrupted by protesters throughout Tuesday as they tried to tout the benefits of their legislation.

“[But this] bill was written in the shadows, written in the dark,” Wyden said.

The items struck from the House-passed bill were described by a spokesperson for the House Ways and Means Committee as “minor provisions."

One is tied to 529 savings accounts for home-schooling expenses pushed by Sen. Ted Cruz (R-Texas).

The Texas senator took a swing at Democrats ahead of the vote to strike his provision, as well as the other pieces that violated the Senate rules.

"What every Democrat is standing up to do right now is saying, 'We're going to discriminate against home-schoolers. We're going to cut you out.' Why? Because the Democratic Party can't stand the audacity of a parent who would take it upon himself or herself to educate their child free of centralized control," Cruz said from the Senate floor.

The second concerns an exemption included in the tax bill that would allow universities with fewer than 500 tuition-paying students not to pay the endowment excise tax.