The Capitol is seen in Washington, Tuesday, May 2, 2017. Erasing the threat of a disruptive government shutdown, the White House and top lawmakers endorsed a $1.1 trillion spending bill to carry the nation through September, an agreement underscoring that Democrats retain considerable clout in Donald Trump
The Capitol is seen in Washington, Tuesday, May 2, 2017. Erasing the threat of a disruptive government shutdown, the White House and top lawmakers endorsed a $1.1 trillion spending bill to carry the nation through September, an agreement underscoring that Democrats retain considerable clout in Donald Trump's turbulent presidency. (AP Photo/Carolyn Kaster)
PHOTO: Carolyn Kaster/AP
Now playing
01:04
House passes bill to replace Obamacare
Now playing
02:15
Why is health care in the US so expensive?
WASHINGTON, DC - OCTOBER 04:  Senate Budget Committee ranking member Sen. Bernie Sanders (I-VT) attends a news conference critical of the Republican tax and budget plan at the U.S. Capitol October 4, 2017 in Washington, DC.  (Chip Somodevilla/Getty Images)
WASHINGTON, DC - OCTOBER 04: Senate Budget Committee ranking member Sen. Bernie Sanders (I-VT) attends a news conference critical of the Republican tax and budget plan at the U.S. Capitol October 4, 2017 in Washington, DC. (Chip Somodevilla/Getty Images)
PHOTO: Chip Somodevilla/Getty Images
Now playing
03:14
Fact check: The true cost of 'Medicare for all'
title: Chairman Orrin Hatch: Assessing the impact of tax reform | LIVE STREAM  duration: 01:25:52  sub-clip duration: 4:00  site: Youtube  author: null  published: Thu Mar 01 2018 10:30:11 GMT-0500 (Eastern Standard Time)  intervention: yes  description: In December, Congress passed the Tax Cuts and Jobs Act, the most sweeping overhaul of America
title: Chairman Orrin Hatch: Assessing the impact of tax reform | LIVE STREAM duration: 01:25:52 sub-clip duration: 4:00 site: Youtube author: null published: Thu Mar 01 2018 10:30:11 GMT-0500 (Eastern Standard Time) intervention: yes description: In December, Congress passed the Tax Cuts and Jobs Act, the most sweeping overhaul of America's tax code in more than 30 years. How will the reduction in the corporate income tax rate and other features of the new tax law affect the US economy? Please join AEI for remarks by Senate Finance Committee Chairman Orrin Hatch (R-UT) on the impact of the Tax Cuts and Jobs Act. After Chairman Hatch's remarks, an expert panel will discuss the legislation further.Watch other videos about "Topic" Subscribe
PHOTO: american enterprise institute
Now playing
00:58
Sen. Hatch calls Obamacare supporters stupid
WASHINGTON, DC - OCTOBER 12:  U.S. President Donald Trump lisens during a nomination announcement at the East Room of the White House October 12, 2017 in Washington, DC. President Trump has nominated Nielsen to be the next homeland security secretary, the position that has left vacant by Chief of Staff John Kelly.  (Photo by Alex Wong/Getty Images)
WASHINGTON, DC - OCTOBER 12: U.S. President Donald Trump lisens during a nomination announcement at the East Room of the White House October 12, 2017 in Washington, DC. President Trump has nominated Nielsen to be the next homeland security secretary, the position that has left vacant by Chief of Staff John Kelly. (Photo by Alex Wong/Getty Images)
PHOTO: Alex Wong/Getty Images North America/Getty Images
Now playing
01:49
Trump ends insurance subsidies for poor people
Now playing
00:53
Rep. Dent: Republicans own Obamacare now
Mick Mulvaney Obamacare subsidies CSR payments tsr_00000000.jpg
Mick Mulvaney Obamacare subsidies CSR payments tsr_00000000.jpg
Now playing
02:46
Trump official defends ending Obamacare subsidies
rick and bubba show trump
rick and bubba show trump
PHOTO: Rick & Bubba Show
Now playing
01:43
Trump: McCain 'no' vote is a slap in the face
9/25/17, CNN, Washington, D.C. 

Sens. Bill Cassidy (R-La.), Lindsey Graham (R-S.C.), Amy Klobuchar (D-Minn.), and Bernie Sanders (I-Vt.) speak at a CNN townhall debate on healthcare at the CNN headquarters in Washington, D.C. on Sept. 25, 2017. 

Gabriella Demczuk / CNN
9/25/17, CNN, Washington, D.C. Sens. Bill Cassidy (R-La.), Lindsey Graham (R-S.C.), Amy Klobuchar (D-Minn.), and Bernie Sanders (I-Vt.) speak at a CNN townhall debate on healthcare at the CNN headquarters in Washington, D.C. on Sept. 25, 2017. Gabriella Demczuk / CNN
PHOTO: Gabriella Demczuk for CNN
Now playing
02:26
Watch highlights from CNN's health care debate
Now playing
00:51
Sanders: Can't understand attacking McCain
Now playing
01:18
Sen. Graham: I will work with anyone
Now playing
01:50
Cassidy takes on the 'Jimmy Kimmel test'
Now playing
01:06
Klobuchar says Trump should work with Dems
Now playing
01:25
Graham on health bill: It's OK to fall short
WASHINGTON, DC - JULY 26:  U.S. Sen. Susan Collins (R-ME) heads for the Senate Floor for a vote at the U.S. Capitol July 26, 2017 in Washington, DC. GOP efforts to pass legislation to repeal and replace the Affordable Care Act, also known as Obamacare, were dealt setbacks when a mix of conservative and moderate Republican senators joined Democrats to oppose procedural measures on the bill.  (Photo by Chip Somodevilla/Getty Images)
WASHINGTON, DC - JULY 26: U.S. Sen. Susan Collins (R-ME) heads for the Senate Floor for a vote at the U.S. Capitol July 26, 2017 in Washington, DC. GOP efforts to pass legislation to repeal and replace the Affordable Care Act, also known as Obamacare, were dealt setbacks when a mix of conservative and moderate Republican senators joined Democrats to oppose procedural measures on the bill. (Photo by Chip Somodevilla/Getty Images)
PHOTO: Chip Somodevilla/Getty Images
Now playing
01:23
Sen. Collins a 'no' on Graham-Cassidy bill
Senator Lindsey Graham (C), R-SC, stands with Senator Bill Cassidy, R-LA, Senator Dean Heller (L), and Senator Ron Johnson, R-WI, as well as former Senator Rick Santorum (R), to announce their legislation to repeal and replace Obamacare through block grants on Capitol Hill in Washington, DC, on September 13, 2017.   / AFP PHOTO / JIM WATSON        (Photo credit should read JIM WATSON/AFP/Getty Images)
Senator Lindsey Graham (C), R-SC, stands with Senator Bill Cassidy, R-LA, Senator Dean Heller (L), and Senator Ron Johnson, R-WI, as well as former Senator Rick Santorum (R), to announce their legislation to repeal and replace Obamacare through block grants on Capitol Hill in Washington, DC, on September 13, 2017. / AFP PHOTO / JIM WATSON (Photo credit should read JIM WATSON/AFP/Getty Images)
PHOTO: JIM WATSON/AFP/AFP/Getty Images
Now playing
01:12
CBO: Millions uninsured under Graham-Cassidy

Story highlights

Final vote was 217-213, with 20 Republicans and all Democrats opposing the bill

Trump confident bill will pass the Senate

Democrats taunted Republicans after vote, believing GOP will suffer in 2018 elections

(CNN) —  

In a major victory for President Donald Trump, the House has voted to dismantle the pillars of the Affordable Care Act and make sweeping changes to the nation’s health care system.

The bill now heads to the Senate where it faces daunting challenges because of the same ideological splits between conservative and moderate Republicans that nearly killed it in the House.

What’s inside the health care bill?

Trump said he is confident the bill will pass the Senate, calling Obamacare “essentially dead.”

“This is a great plan. I actually think it will get even better. This is a repeal and replace of Obamacare. Make no mistake about it,” Trump said at a celebratory White House appearance with House Republicans.

After a dramatic week of negotiations, lobbying from Trump and Republican leaders, the vote ended with 217 GOP lawmakers backing the measure. Twenty Republicans opposed it, as did all House Democrats.

Trump argued the health care process has unified the GOP. “We’ve developed a bond,” he said. “This has really brought the Republican Party together.”

“As far as I’m concerned, your premiums are going to come down,” Trump said.

Democrats were unable to stop the GOP vote aimed at President Barack Obama’s signature legislative achievement. But after the final vote was cast, they chanted “nah nah nah nah hey hey hey goodbye” to their Republican colleagues, with a few members waving, as they believe the vote will lead to many GOP lawmakers losing their seats in the November 2018 midterms.

Thursday marks a political milestone – one that has painfully eluded Trump and House leaders for months. The controversial health care bill delivered Trump the biggest political defeat of his short presidency in March, when the legislation had to be yanked from the House floor because it simply didn’t have enough support.

Under pressure from an antsy Trump looking to score a big political victory, Republican leaders tried again last week, hoping to to get to 216 votes ahead of the President’s symbolically important 100-day mark in office. That effort, too, failed.

Before the vote on the House floor, House Speaker Paul Ryan made the case that Republicans had no choice but to work to put Obamacare – what he called a “failing law” – behind them. “Let’s give people more choices and more control over their care.”

“Let’s return power from Washington to the states,” Ryan said.

“A lot of us have been waiting seven years to cast this vote.” Ryan said. Many lawmakers, he added are “here because they promised to cast this vote.”

’Rocky’ plays in GOP meeting

Thursday morning, Republicans were already in a celebratory mode. The theme song to “Rocky” played as members filed in to a meeting in the House basement.

Rep. Daniel Webster described Ryan as almost “giddy.”

Asked if he will be relieved when all of this is over, Virginia Rep. Dave Brat said simply: “Highly!”

When it came time for House Majority Leader Kevin McCarthy to speak in the meeting, an image of Gen. George S. Patton popped up on the LCD screens in the room. McCarthy proceeded to roll off several motivational quotes from Patton to urge the conference along.

There was also high praise for Trump: New York Rep. Chris Collins credited the President for getting the bill across the finish line. “This was Donald J. Trump, the negotiator getting it done,” Collins said.

Before the final vote, the House unanimously passed a separate bill that will ensure members of Congress and their staffs are subject to the rules of their new health care measure. Originally, Republicans were under fire after it was reported that they wouldn’t be subject to the rules of their own bill. Republicans said that they were required to include the exemption under Senate rules.

Democrats ready for 2018 fight

Democrats, for their part, are poised to hold the health care bill over the heads of Republicans next year.

As anxious reporters stood outside of Ryan’s office Wednesday night, waiting for guidance on whether there would be a vote Thursday morning, Democratic Rep. Elijah Cummings approached the group to joke that he had a “breaking” announcement.

Republicans had the votes on their health care bill, Cummings said. His punchline: And Democrats will take back the House in 2018.

As originally introduced, the GOP bill would leave 24 million fewer people insured by 2026 than under Obamacare, the non-partisan Congressional Budget Office said. There will not be a new CBO report before Thursday’s vote on the legislation.

House Minority Leader Nancy Pelosi blasted the bill and timing of the vote.

“Do you believe in what is in this bill?” she said Thursday. “Some of you have said … well, they’ll fix it in the Senate. But you have every provision of this bill tattoos on your forehead you will glow in the dark on this one.”

The remark was met with cheers and applause.

“You will glow in the dark,” she repeated. “So don’t walk the plank.”

But the weight of the moment – Republicans being able to start the process of replacing Obamacare – was not lost on Democrats.

Off of the House floor, Democratic Rep. Emanuel Cleaver raised his left pant leg to show a CNN reporter huge scars he has on his knee. He said he has had six surgeries, two to replace his knee.

“I’m thinking about the people back home who are hurting. I’m talking about myself. I mean, I’m a pre-existing condition,” he said. “It’s not apolitical game for all these people out here in the country who are hurting and scared to death.”

Cleaver said when Obamacare was enacted in 2010, he never could have imagined that this day would come.

“I thought that even though this place has become toxic, that nobody would jeopardize the health of millions of people for some political purpose,” he said. “And the number is still 24 million people who will be without health coverage.”

What’s in the bill?

The GOP health care bill would eliminate Obamacare taxes on the wealthy, insurers and others, and get rid of the individual mandate imposed by Obamacare, officially known as the Affordable Care Act. Instead of the Obamacare subsidies that are tied to income and premiums, the GOP plan would provide Americans with refundable tax credits based mainly on age to purchase health insurance.

The legislation would also allow insurers to charge higher premiums to those in their 50s and early 60s, compared to younger consumers.

It would also significantly curtail federal support for Medicaid and allow states to require able-bodied adults to work. After 2020, states that expanded Medicaid would no longer receive enhanced federal funding to cover low-income adults, and those that hadn’t expanded would be immediately barred from doing so.

What the GOP health care bill really says about pre-existing conditions

And it would allow states to relax some key Obamacare protections of those with pre-existing conditions, which are among the health reform law’s most popular provisions. States could apply for waivers to allow insurers to offer skimpier policies that don’t cover the 10 essential health benefits mandated by Obamacare. Also, insurers would be able to charge higher premiums to those with medical issues if they let their coverage lapse. States requesting waivers would have to set up programs – such as high-risk pools – to protect insurers from high-cost patients.

An eleventh-hour amendment that helped seal the missing GOP votes would add $8 billion over five years to fund high-risk pools and go toward patients with pre-existing conditions in states that seek waivers under the Republican legislation. The legislation already included $130 billion in the fund.

However, the GOP bill doesn’t touch one beloved piece of Obamacare – letting children stay on their parents’ insurance plans until the age of 26.

CNN’s Phil Mattingly, Lauren Fox and Tami Luhby contributed to this report.