Donald Trump is one huge step closer to repealing Obamacare, after the House of Representatives narrowly passed a healthcare bill aimed at undoing one of his predecessor's biggest accomplishments.

The 217-213 vote is a significant triumph for Mr Trump, who repeatedly promised during his campaign to repeal and replace former President Barack Obama's healthcare law. Mr Trump suffered a major setback in March after a vote on an earlier version of the American Health Care Act (AHCA) was dramatically cancelled at the last minute when it failed to gain enough Republican support.

Twenty Republicans voted against the legislation, which was fully rejected by Democrats.

The AHCA now faces an uphill battle in the Senate, but Mr Trump feels confident about the result. “It’s going to an unbelievable victory when we get it through the Senate,” Mr Trump said at a press conference following the House vote.

Mr Trump saluted the bill as “a great plan and [one that] will get even better”, saying more than once: “Make no mistake: this is a repeal and replace of Obamacare”. Obamacare, he added, was “essentially dead”.

The US leader also vowed that premiums and deductibles would come down. “People are suffering so badly with the ravages of Obamacare,” said Mr Trump, whose West Wing staff were eager for the appearances of a victory after a turbulent first 100 days in office.

A joyous Mr Trump at one point even turned to the representatives lined up behind him and, suggesting the victory was especially impressive for a novice politician, exclaimed “Hey, I'm President! I'm President! Can you believe it?”

Senate Republican leader Mitch McConnell has repeatedly said the upper chamber would work on a healthcare bill if the House passed one, but that it would be difficult.

Donald Trump's first 100 days: in cartoons Show all 33 1 /33 Donald Trump's first 100 days: in cartoons Donald Trump's first 100 days: in cartoons Donald Trump's first 100 days in office were marred by a string of scandals, many of which caught the eye of the Independent's cartoonists Donald Trump's first 100 days: in cartoons Trump's first 100 days have seen him aggressively ramp up tensions with his nuclear rivals in North Korea Donald Trump's first 100 days: in cartoons Mr Trump has warned of a "major, major conflict" with the pariah nation lead by Kim Jong Un Donald Trump's first 100 days: in cartoons Mr Trump dropped the "mother of all bombs" on alleged ISIS-linked militants in Afghanistan, amid an escalation of US military intervention around the globe Donald Trump's first 100 days: in cartoons Mr Trump has been accused of falling short of the standards set by his predecessors in the Oval Office, including Franklin D Roosevelt Donald Trump's first 100 days: in cartoons The tycoon's ascension to the White House came at a time when the balance of power is shifting away from Western nations like those in the G7 group Donald Trump's first 100 days: in cartoons Western politicians, including the British Conservative party, have been accused of falling in line behind Mr Trump's proposals Donald Trump's first 100 days: in cartoons Brexit is seen to have weakened Britain, reducing still further any political will to resist American leadership Donald Trump's first 100 days: in cartoons Mr Trump's leadership has been marked by sudden and unexpected shifts in global policy Donald Trump's first 100 days: in cartoons Trump's controversial missile strike on Syria, which killed several citizens, was seen by some analysts as an attempt to distract from his policy elsewhere Donald Trump's first 100 days: in cartoons The President has also spent a large majority of his weekends golfing, rather than attending to matters of state Donald Trump's first 100 days: in cartoons Though free of gaffes, a visit from Chinese president Xi Jinping spotlighted trade tensions between the two states Donald Trump's first 100 days: in cartoons One major and unexpected setback came when Mr Trump's Healthcare Bill was struck down by members of his own party Donald Trump's first 100 days: in cartoons Mr Trump has been a figure of fun in the media, with his approval at record lows Donald Trump's first 100 days: in cartoons A string of revelations about Mr Trump's financial indiscretions did not mar his surge to the White House Donald Trump's first 100 days: in cartoons Outgoing President Barack Obama was accused of wiretapping Trump Tower by his successor in America's highest office Donald Trump's first 100 days: in cartoons The alleged involvement of Russian intelligence operatives in securing Mr Trump the presidency prompted harsh criticism Donald Trump's first 100 days: in cartoons The explosive resignation of Security Adviser Michael Flynn, who lied about his links to the Russian ambassador, was just one scandal to hit the President Donald Trump's first 100 days: in cartoons Many scandals, such as the accusation Barack Obama was implicated in phone-hacking, first broke on Mr Trump's Twitter feed Donald Trump's first 100 days: in cartoons Donald Trump's election provoked mass protests in the UK, with millions signing a petition to ban him from the country Donald Trump's first 100 days: in cartoons Donald Trump cited a non-existent terror attack in Sweden during a campaign rally Donald Trump's first 100 days: in cartoons Donald Trump stands accused of stoking regional tensions in Eastern Asia Donald Trump's first 100 days: in cartoons North Korea has launched a number of failed nuclear tests since Mr Trump took power Donald Trump's first 100 days: in cartoons Theresa May formally rejected the petition calling for Mr Trump to be banned from the UK Donald Trump's first 100 days: in cartoons When Mr Trump's initial so-called Muslim ban was struck down by a federal justice, the President mocked the 69-year-old as a "ridiculous", "so-called judge" Donald Trump's first 100 days: in cartoons A week after his inauguration, Theresa May met with Mr Trump at the White House Donald Trump's first 100 days: in cartoons Donald Trump's first days in office were marked by a hasty attempt to follow through on many of his campaign promises, including the so-called Muslim ban Donald Trump's first 100 days: in cartoons Donald Trump's decision to ban citizens of many majority-Muslim countries from the US sparked mass protests Donald Trump's first 100 days: in cartoons Revelations about Donald Trump's sexual improprieties were not enough to keep him from being elected President Donald Trump's first 100 days: in cartoons British PM Theresa May was criticised by many in the press for cosying up to the new President Donald Trump's first 100 days: in cartoons One of Mr Trump's top aides, Kelly Anne Conway, was mocked for describing mistruths as "alternative facts" Donald Trump's first 100 days: in cartoons British PM Theresa May was quick to demonstrate that her political aims did not hugely differ from Mr Trump's Donald Trump's first 100 days: in cartoons Donald Trump's inauguration, on 20 January 2017, sparked protests both at home and abroad

While Republican senator Bob Corker said the Senate hasn’t been focused on a healthcare bill just yet, House Freedom Caucus chairman Mark Meadows told CNN he has spent the last four or five weeks speaking with Senators about the legislation.

“I do believe we can make it better by using some of their ideas to improve it,” Mr Meadows said. There is uncertainty over whether the Senate will take up the House's bill or write its own.

While not fully repealing the Affordable Care Act, the latest version of Mr Trump's AHCA would make it possible for states to opt out of having to provide certain health services. It would also eliminate fines imposed on people who don’t buy insurance.

A previous version of the bill – which is opposed by the American Medical Association, the AARP, and other medical groups – would have bumped an estimated 24 million people off of insurance by 2026, according to an analysis by the Congressional Budget Office.

The House voted on the legislation without an updated analysis of how much it would cost, or how many it would affect, a sign that leadership was trying to rush the bill through the lower chamber, AHCA critics say.

House minority leader Democrat Nancy Pelosi said: “Republicans are clearly terrified of their members and the American people seeing the full consequences of their plan to gut critical protections for Americans with pre-existing conditions.”

An eleventh-hour deal made between two Republicans and Mr Trump himself is slated to provide $8bn over five years to help people with pre-existing illnesses, such as asthma or heart disease, afford coverage.

Speaking on the House floor before the vote, Ms Pelosi cited a study from Karen Pollitz, a healthcare expert at the Kaiser Family Foundation, who found that the $8bn would only cover the cost of one per cent of those who purchase insurance on the exchanges created by Obamacare.

Ms Pelosi has also said that the healthcare bill will provide a great civics lesson for America.

“Let's face it, as important as we think we are when we're in Congress, most people don't even know who their Congress person is in many places, and now they'll find out,” Ms Pelosi said. “They'll find out that their Congress person voted to take away their healthcare.”

Republicans are adamant that the AHCA will provide Americans with more choices for where to receive health insurance coverage, as insurers continue to stop selling individual plans in certain states. Insurers have cited market uncertainty and instability as reasons for exiting the exchanges.

House Speaker Paul Ryan asked, “What protection is Obamacare if there is no healthcare plan to purchase in your state?”