After a marathon session that stretched past midnight and into the early morning, the Senate passed a tax reform bill on a largely party-line vote.

The Tax Cuts and Jobs Act is on track to reach President Donald Trump’s desk before Christmas and fulfill the president’s promise of a “big, beautiful” tax cut for Christmas. But it’s not yet a done deal.

[lz_ndn video=33319844]

More from LifeZette TV

MORE NEWS: Biden Tells Republicans Don’t Confirm President’s SCOTUS Nomination

The House of Representatives must either adopt the Senate version of the bill wholesale, or a conference committee of representatives from the House and Senate must produce a compromise version that would have to clear both chambers again.

Still, Saturday’s vote is a major relief for Senate Majority Leader Mitch McConnell (R-Ky.), whose failure to shepherd a repeal of Obamacare through the chamber earlier this year was a major embarrassment and led to rising discontent among conservative activists. It is a major win for Trump, whose failure to translate his priorities into law had been mocked and whose former national security adviser pleaded guilty on Friday to lying to the FBI.

Do you agree that protesting is acceptable, but rioting is not? Yes No Email Address (required) By completing the poll, you agree to receive emails from LifeZette and that you've read and agree to our privacy policy and legal statement Results Vote

The final vote was 51-49, with all Democrats voting “no,” and all Republicans voting “yes” except for Sen. Bob Corker (R-Tenn.), prompting an ovation from the GOP side of the aisle.

“I’m totally convinced this is a revenue-neutral bill, actually a revenue-producer bill that’s gonna get America moving again,” McConnell said during a post-vote news conference.

The broad outlines of the Senate bill are similar to those the House passed last month. The top corporate tax rate would be cut from 35 percent to 20 percent, and businesses temporarily would be able to write off expenditures for investments such as new plants and equipment. The bill also includes incentives for multinational companies to bring profits made in foreign countries back to the United States.

MORE NEWS: Ep 48 | Assassination Attempt On President Goes Uncovered, Schools Opt for Silent Lunches

On the individual income tax side, the bill reduces rates, eliminates some deductions, and nearly doubles the standard deduction. It also doubles the child tax credit, from $1,000 to $2,000. Proponents argue that families will have more money to spend and that lower business taxes will spark faster economic growth and make America more competitive with other industrialized countries.

“If America is going to be competitive in the global marketplace, we have to change our tax code, because it is completely outdated, completely antiquated relative to any of the countries with whom we compete,” Sen. John Thune (R-S.D.) said during the debate.

Democrats argued that the bill would blow a hole in the national debt, benefit the wealthy, and lay the groundwork for deep future cuts to Social Security, Medicare and Medicaid. Sen. Bernie Sanders (I-Vt.) said historians would conclude that Friday was a day of “one of the great robberies” in modern history.

“While the Republicans may get away this act of looting tonight, history is not on their side,” he said. “The day will come — and it will come sooner [rather] than later — when we are going to have a government here that represents all of us, not just the Koch Brothers, not just the billionaire class, not just wealthy campaign contributors.”

Corralling the majority was far from easy, however. Republican leaders promised a vote on legislation to shore up the individual insurance market to win support from Sen. Susan Collins (R-Maine). To assuage Sens. Ron Johnson (R-Wis.) and Steve Daines (R-Mont.), leaders changed the bill to provide more tax relief to small businesses that do not file under the corporate code.

Republicans spent much of the night beating back Democratic efforts to change the bill or delay the vote. Senators also turned down a pet proposal of Sens. Marco Rubio (R-Fla.) and Mike Lee (R-Utah) to make the expanded $2,000-per-child tax credit available to households that do not pay enough income taxes to fully qualify.

The Rubio-Lee amendment would have let people count the credit against payroll taxes they pay to support Social Security, Medicare and Medicaid. To pay the $86.9 billion cost, Rubio and Lee proposed cutting the top corporate rate to 20.94 percent instead of 20 percent.

Related: No Democrats Expected to Vote for Tax Cuts — Why?

Rubio said it would help working-class Americans without denting the growth impact of the corporate rate reduction. He noted that Senate leaders came up with an additional $260 billion for small business owners.

“I just wish that some of that jiu-jitsu and political magic had been employed on behalf of the millions of Americans making … $20-, $50-, $60,000 a year, because they need our help,” he said.

But the Senate rejected the idea, 71-29. After losing a similar but more generous proposal sponsored by Sen. Sherrod Brown (D-Ohio), all but eight Democrats and Democratic-leaning independent Sen. Angus King of Maine voted against Rubio’s amendment.

(photo credit, article images: Mitch McConnell, CC BY-SA 2.0, by Mark Taylor)