The next battle was in the Senate, where Republicans struggled to win over their own party members to support the bill, which went through a process known as budget reconciliation.

But on Friday (local time), the Senate approved their bill in a 51-49 vote, despite Democrats complaining that last-minute amendments to win over sceptical Republicans were vulnerable to being gamed later.

In fact, with all the late changes that were made to the tax bill, it ended up being a mad rush to get it to a vote on Friday afternoon.

Some politicians even complained that there were "handwritten pages" in the bill.

But it had been on Trump's agenda for a while

The tax plan will:

Create three individual tax brackets with rates of 12 per cent, 25 per cent and 35 per cent

Allow the majority of Americans to file taxes on a single sheet of paper

Roughly double the standard deduction, a set amount of income exempt from taxation, for all taxpayers

Mr Trump has been pushing for tax cuts since his election campaign and ended up imposing a deadline for the bill to be passed by Christmas.

Republicans have argued that it has been on their agenda for even longer, with the final plan emerging after years of debating various proposed changes to the tax code.

Why was it only passed with a slim majority?

Well, there were a few reasons why some, mainly the Democrats, were opposed to the tax bill.

First is that it's pretty costly.

The Republicans have approved the bill adding up to $US1.4 trillion to America's debt over the next 10 years. But some took exception to the huge cost, most notably some members of the Republican party.

That brings us to the second reason. While the plan passed quickly in the House, the Republicans only had a narrow majority in the Senate (52-48), and were faced with some of their own party members threatening to cross the floor.

US media had been reporting that up to six Republicans were considering opposing the plan, including senators Jeff Flake and James Lankford, who had been concerned about the impact the bill would have on the deficit, healthcare and the distribution of tax benefits.

Five of those senators ended up voting in favour of the bill.

Senator Bob Corker remained the only hold out, saying he was unable to support the legislation after his bid to include future tax increases to offset the deficit was rejected.

And third, some of the details of the plan are still unclear.

The Senate's final draft of the bill moved so fast that it was unavailable to the public until just a few hours before the vote.

On top of that, the framework for both the Senate and House bills had been developed in secret over a few months by half a dozen Republican congressional leaders and Trump advisers.

There was apparently little input from the party's rank-and-file and none from Democrats.

So, it's a pretty big deal

Expectations of lower taxes have helped drive the S&P 500 up more than 20 per cent since the 2016 presidential election, with investors counting on lower tax rates to boost company earnings.

Mr Trump, speaking to reporters as he left the White House for New York hours after the pre-dawn vote, praised the Senate for passing "tremendous tax reform" and said "people are going to be very, very happy".

And after a bad run lately — Republicans having been unable to deliver any major legislative achievements since Mr Trump became president in January despite controlling the White House and both chambers of Congress — these tax cuts represent a huge achievement.

Despite facing questions from members of his own party over his competence, the passing of what has been described as the "largest overhaul to the US tax system since the 1980s" shows that Republicans are still sticking by their leader.

It is also represents another victory for Mr Trump, in the repeal of the individual mandate, the ObamaCare requirement for Americans to have health care.

Economists, tax experts and analysts have been split about how it will generate economic expansion and who will most benefit.

Republicans argue their plan will benefit America's middle class and save $US1,182 in taxes for a family of four earning $US59,000.

They also say it will lead to investment and job creation.

But Democrats say, the "lion's share of its benefits to those at the very top, the already wealthy and the already powerful".

Independent analysis by the Joint Committee on Taxation found 61.7 per cent of Americans would get a tax cut of $US100 or more in 2019 if the TCJA passes, while 30.2 per cent would see a change of less than $US100 to their tax bill.

Nonpartisan think tank, The Tax Policy Center, also analysed an earlier but broadly similar version of the bill and found it would reduce taxes for all income groups in 2019 and 2025, with the largest average tax cuts going to the highest-income Americans.

Another concern has been features like phase-outs of some benefits, which suggest individual and family taxes could grow in the future.

That's because one trade-off for the tax reductions is the elimination of personal and family tax breaks, such as their ability to write off state and local income taxes.

Many Republicans had also expressed their reservations about plans to permanently reduce the corporate tax rate but allow household and individual tax cuts to expire.

US media has also reported that the Republican tax bill would force $25 billion in immediate cuts to Medicare, according to the Congressional Budget Office, because of a pay-as-you-go law that requires Congress tax cuts and certain spending increases to be offset.

The cuts to Medicare are expected to put the health coverage of millions of Americans at risk.

And what's with the Medicare mandate repeal provision?

The Senate tax-cut plan included a repeal of an Obamacare rule that requires Americans to have health insurance coverage or pay a penalty.

Mr Trump said in a tweet last month that the individual mandate repeal should be added to the plan, which is reportedly expected to save billions in government spending over the next decade.

It will also offset some of the costs of the tax cuts because the repeal would lead to less people taking up the Obamacare individual health plans and enrolling in the government program that provides health coverage to the poor, Medicaid.

So what's next?

There will probably be some work involved in finalising the details of the plan, which has hand-written pages in it.

It will be now be up to both the House of Representatives and the Senate to reconcile the two different plans.

The House, which has already approved its own bill, is currently expected largely to defer to the Senate measure with talks likely to begin next week.

Once reconciled, the single plan would then be brought to the White House, where Mr Trump is expected to sign it into law before the end of the year.