Senate approves major tax cuts in victory for Trump President Donald Trump answers a question from the press about discussion of the tax bill, Thursday, Nov. 16, 2017, on Capitol Hill in Washington. Trump is at the Capitol for a pep rally with House Republicans, shortly before the chamber is expected to approve the tax bill over solid Democratic opposition. (AP Photo/Jacquelyn Martin)

The U.S. Senate narrowly approved a tax overhaul, moving Republicans and President Donald Trump a big step closer to their goal of slashing taxes for businesses and the rich while offering everyday Americans a mixed bag of changes.

In what would be the largest change to U.S. tax laws since the 1980s, Republicans want to add $1.4 trillion over 10 years to the $20 trillion national debt to finance changes that they say would further boost an already growing economy.

“We are one step closer to delivering MASSIVE tax cuts for working families across America,” Trump said in an early-morning tweet.

U.S. stock markets have rallied for months in the hope that Washington would provide significant tax cuts for corporations.

Celebrating their Senate victory, Republican leaders predicted the tax cuts would encourage U.S. companies to invest more and boost economic growth.

“We have an opportunity now to make America more competitive, to keep jobs from being shipped offshore and to provide substantial relief to the middle class,” said Mitch McConnell, the Republican leader in the Senate.

The Senate approved their bill in a 51-49 vote with Democrats complaining that last-minute amendments to win over skeptical Republicans were poorly drafted and vulnerable to being gamed later by lawyers and accountants in the tax avoidance industry.

“The Republicans have managed to take a bad bill and make it worse,” said Senate Democratic leader Chuck Schumer. “Under the cover of darkness and with the aid of haste, a flurry of last-minute changes will stuff even more money into the pockets of the wealthy and the biggest corporations.”

No Democrats voted for the bill, but they were unable to block it because Republicans hold a 52-48 Senate majority.

Talks will begin, likely next week, between the Senate and the House of Representatives, which has already approved its own tax bill.

Trump wants that to happen before the end of the year, allowing him and his Republicans to score their first major legislative achievement of 2017, despite controlling the White House, the Senate and the House since he took office in January.

Republicans failed in their efforts to repeal the Obamacare healthcare law over the summer and Trump’s presidency has been hit by White House in-fighting and by a federal investigation into possible collusion last year between his election campaign team and Russian officials.

The tax overhaul is seen by Trump and Republicans as crucial to their prospects at mid-term elections in November 2018, when they will have to defend their majorities in Congress.

In a legislative battle that moved so fast a final draft of the bill was unavailable to the public until just hours before the vote, Democrats slammed the proposed tax cuts as a give-away to businesses and the rich financed with billions of dollars in taxpayer debt.

The framework for both the Senate and House bills was developed in secret over a few months by a half-dozen Republican congressional leaders and Trump advisers, with little input from the party’s rank-and-file and none from Democrats.