The Senate on Thursday passed legislation repealing the core pillars of ObamaCare, taking a major step toward sending such a bill to the president’s desk for the first time.

Republicans hailed it as a political messaging victory and a fulfillment of their promise from the 2014 midterm election to force President Obama to veto the landmark healthcare reform law named after him.

ADVERTISEMENT

The measure passed 52-47 after the Senate voted to significantly strengthen the bill originally passed by the House and brought straight to the floor by Majority Leader Mitch McConnell Addison (Mitch) Mitchell McConnellPelosi: Trump hurrying to fill SCOTUS seat so he can repeal ObamaCare Senate GOP aims to confirm Trump court pick by Oct. 29: report Trump argues full Supreme Court needed to settle potential election disputes MORE (R-Ky.).

The House will need to approve the amended legislation before it can be sent to the White House.

Thursday’s vote was a major event in the Senate, as Democrats never allowed a stand-alone vote on an ObamaCare repeal bill when they controlled the chamber.

Democrats were also unable to block the GOP measure, which was brought to the floor under budget reconciliation rules that prevented a filibuster.

“For too long, Democrats did everything to prevent Congress from passing the type of legislation necessary to help these Americans who are hurting,” McConnell said on the floor. “Today, that ends.”

The measure guts the law by repealing authority for the federal government to run healthcare exchanges, and scrapping subsidies to help people afford plans bought through those exchanges. It zeros out the penalties on individuals who do not buy insurance and employers who do not offer health insurance.

Sen. Bernie Sanders (I-Vt.), who is running for the Democratic presidential nomination, missed the final vote.

The vote caps weeks of intense and at times acrimonious debate within the Senate GOP conference over how far the repeal should go.

Conservative Sens. Ted Cruz Rafael (Ted) Edward CruzTrump argues full Supreme Court needed to settle potential election disputes Press: Notorious RBG vs Notorious GOP The Hill's Morning Report - Sponsored by Facebook - Washington on edge amid SCOTUS vacancy MORE (R-Texas) and Marco Rubio (R-Fla.), who are running for president, and Sen. Mike Lee Michael (Mike) Shumway LeeMcConnell shores up GOP support for coronavirus package McConnell tries to unify GOP Davis: The Hall of Shame for GOP senators who remain silent on Donald Trump MORE (R-Utah) threatened to oppose a House-passed repeal bill for not going far enough.

Three moderates, Sens. Susan Collins Susan Margaret CollinsSenate GOP aims to confirm Trump court pick by Oct. 29: report The Hill's Campaign Report: GOP set to ask SCOTUS to limit mail-in voting Senate GOP sees early Supreme Court vote as political booster shot MORE (R-Maine), Mark Kirk (R-Ill.) and Lisa Murkowski Lisa Ann MurkowskiSenate GOP aims to confirm Trump court pick by Oct. 29: report Senate GOP sees early Supreme Court vote as political booster shot Pence defends Trump's 'obligation' to nominate new Supreme Court justice MORE (R-Alaska), balked at it for including language defunding Planned Parenthood.

GOP leaders briefly floated the possibility of dropping the Planned Parenthood language but dropped the idea knowing it could spark a conservative backlash.

Instead, McConnell leaned on Cruz, Rubio and Lee to vote yes and sweetened the prospect by crafting an amendment that dramatically beefed up the Senate package. All three voted yes.

“This bill is a substantial improvement over the original House bill, and I’m grateful to Senate conservatives and Senate leadership for joining me in making it so,” Cruz said in a statement after the vote.

It repeals the expansion of Medicaid adopted by 30 states as well as many of the law’s tax increases, which the House bill left in place.

It cuts funding for the Prevention and Public Health Fund and eliminates risk adjustment programs from insurance companies that lose money because of the law.

The House bill eliminates the individual and employer mandates, the "Cadillac tax" on expensive insurance plans and the medical device tax.

The question of how to handle Medicaid was a thorny one for McConnell because it pitted conservatives, who demanded a repeal, against Republican colleagues from states that expanded the safety-net program.

“I am very concerned about the 160,000 people who had Medicaid expansion in my state. I have difficulty with that being included,” Sen. Shelley Moore Capito, a Republican from West Virginia, told The Hill earlier this month.

Vulnerable GOP incumbents face reelection next year in several states that have expanded Medicaid: Illinois, New Hampshire, Ohio and Pennsylvania.

McConnell eased their concerns by phasing in the repeal over two years to give the federal government and states time to come up with a replacement program.

The Senate bill also repeals the over-the-counter medicine tax, the prescription drug tax, an annual fee on health insurers and the tax on indoor tanning services. It reduces the threshold of healthcare costs that can be deducted from 10 percent to 7.5 percent of adjusted gross income.

Cruz and Rubio signaled to GOP leaders earlier in the week that they would vote for the package but Cruz held out, keeping his colleagues guessing.

The GOP leadership braced itself for the possibility that Cruz might attempt to force the Senate to vote on a one-sentence provision repealing the entire bill, which the Senate Parliamentarian Elizabeth MacDonough had ruled out of order.

Cruz could have attempted to overturn the ruling of the presiding chair, who almost always follows the advice of the parliamentarian, with a simple-majority vote. But he decided not to, a pragmatic move since he colleagues were unlikely to back him.

Collins and Kirk voted against the repeal package after an amendment they offered earlier in the day to strike the language defunding Planned Parenthood failed by a vote of 48-52.

Murkowski, another sponsor of the amendment to protect Planned Parenthood funding, voted yes for the broader bill after declining to take a public position before the floor debate.

The Senate voted throughout the afternoon on a variety of amendments, many of them intended to send a political message.

Democrats sought to score political points by offering an amendment sponsored by Sen. Dianne Feinstein Dianne Emiel FeinsteinBiden leads Trump by 12 points among Catholic voters: poll Names to watch as Trump picks Ginsburg replacement on Supreme Court McConnell says Trump nominee to replace Ginsburg will get Senate vote MORE (D-Calif.) to bar suspected terrorists from buying guns. It failed by a vote of 45-54.

The Democratic Senatorial Campaign Committee blasted vulnerable Republicans who opposed it.

“It’s reprehensible that with everything going on in the world, these senators won’t stand up to the special interests and pass a commonsense measure like closing the terrorist gun loophole,” said Lauren Passalacqua, a spokeswoman for the committee.

An amendment sponsored by Sen. Rand Paul Randal (Rand) Howard PaulSecond GOP senator to quarantine after exposure to coronavirus GOP senator to quarantine after coronavirus exposure The Hill's Morning Report - Sponsored by National Industries for the Blind - Trump seeks to flip 'Rage' narrative; Dems block COVID-19 bill MORE (R-Ky.), another presidential candidate, to loosen restrictions on concealed weapons permits fell six votes short of the 60 it needed as a nongermane proposal.

Senators passed by a vote of 90-10 an amendment sponsored by Sen. Dean Heller (R-Nev.) to repeal the "Cadillac tax" on expensive health plans. The provision was included in the House bill but had to be sunset to pass parliamentary muster in the upper chamber. Heller’s amendment removed the time-limiting language.

Jordain Carney contributed to this story.

- Updated at 8:46 p.m.