President Donald Trump paraphrased a Rolling Stones song that is a staple at his campaign rallies as he processed the stunning defeat of an Obamacare repeal bill, telling a New York crowd, 'You can't have everything – boy, oh boy.'

Trump sounded the note of acceptance as he told police officers on Long Island that the Senate 'should have' passed a partial Obamacare repeal – after his own efforts to push it through lobbying, online pleading, and pressure tactics failed.

'They should have approved health care last night. But you can’t have everything – boy, oh boy,' the president said.

'BOY, OH BOY': President Trump lamented the Senate's failure to pass an Obamacare repeal bill Friday

Trump, who had pleaded with Republicans to go ahead and vote, and whose administration months ago went all-in to try to get the House to pass a repeal, seemed to say the vote came too early.

'You know I said from the beginning, let Obamacare implode and then do it. I turned out to be right. Let Obamacare implode,' Trump said.

He acknowledged that Republicans have been campaigning on a repeal for years, without effect.

'They’ve been working on that one for seven years can you believe that? The swamp. But we’ll get it done,' Trump said, with no further road map after the defeat of three separate versions of Obamacare repeal legislation.

He frequently refers to draining the political swamp in Washington.

'We're gonna get it done,' he added.

'We’ll get it done,' Trump said, with no further road map after the defeat of three separate versions of Obamacare repeal legislation

The Stones' 'You Can't Always Get What You Want' is a staple at Trump campaign rallies.

Trump started the day Friday blaming the Senate rules for the GOP's inability to pass a promised Obamacare repeal – even though party leaders brought up the bill on a fast-track procedure and still fell short of a majority.

The president repeated his call for ending the legislative filibuster on Twitter Friday morning, just hours after his party suffered a humiliating defeat and failed to pass even a 'skinny bill' to get rid of parts of Obamacare.

Three Republicans, including cancer-stricken Sen. John McCain, joined Democrats to oppose the GOP plan, which was released just hours before the vote.

'If Republicans are going to pass great future legislation in the Senate, they must immediately go to a 51 vote majority, not senseless 60,' Trump wrote in the first of a series of tweets.

High drama for the maverick: Senator John McCain leaves the the Senate chamber at the U.S. Capitol after voting against his own party

'Even though parts of healthcare could pass at 51, some really good things need 60. So many great future bills & budgets need 60 votes....' he added.

Republican leaders brought up Obamacare repeal legislation using special 'reconciliation' procedures, which would have allowed legislation to clear on a simple majority vote.

It wouldn't have wiped away the entire bill, but could have rendered it virtually unworkable by ripping out an employee and employer mandate and gutting revenue provisions and insurance subsidies – if Republicans could have mustered a majority for a bill.

The purpose of the procedure, with its drawbacks of not being able to strike all policy aspects of the law, was to deny Democrats the ability to lead a filibuster of the legislation.

As the debate wore on, GOP repeal efforts became highly unpopular, and the Obamacare law, which had a rough debut when it got rolled, out grew in popularity.

McCain,who lived up to his reputation as a political maverick as he dramatically voted 'no' to reject the repeal of Obamacare on a night of high suspense in the U.S. Capitol, cited the closed process used to design the legislation.

President Trump renewed his call to change Senate rules, even though GOP leaders failed to pass Obamacare under a special fast-track procedure they designed

President Trump renewed his call to change Senate rules, even though GOP leaders failed to pass Obamacare under a special fast-track procedure they designed

The vote occurred at 1:30 am, there were no hearings on the bill, and the vote happened just two hours after the legislation got a budget score from a nonpartisan budget office.

Even some proponents of the 'skinny bill' said they didn't it to be enacted, and merely supported it as a way to hopefully start a conference committee with the House. Sen. Lindsey Graham (R-S.C.), who voted for the bill, nevertheless called it a 'fraud.'

With the vote stalled going late into the morning, McCain walked onto the Senate floor just before 2am to point his finger downwards and said 'nay' to audible gasps from fellow lawmakers.

In doing so, the 80-year old former POW dealt a dramatic blow to the GOP's seven-year long quest to strike down Obamacare.

Senate Minority Leader Charles Schumer blasted Trump's analysis at a Friday morning press conference.

'This morning, Donald Trump pulled away from the bipartisanship that John McCain and so many senators felt last night by saying we should change the rules and got to 51,' Schumer told reporters.

'Hello? He had 51. He only needed 51 in the health care bill and couldn’t do it. So Let him turn around too. Let him und that the only way we get major things done in American in the Congress and particularly in the Senate is bipartisan. And I hope he changes but his analysis is based on fluff. Because he had the 51 votes already with reconciliation and he couldn’t get it done.'

Schumer added: 'I just don’t get it.'

Killing the so-called 'skinny repeal' dead 51-49, McCain, who flew to Washington after surgery and his recent diagnosis of an aggressive form of brain cancer, was joined by fellow GOP rebels, Senators Lisa Murkowski and Susan Collins.

On leaving the Capitol, McCain was asked by reporters why he decided to vote against the bill.

He replied, 'Because it was the right thing to do.'

He later issued a statement.

'From the beginning, I have believed that Obamacare should be repealed and replaced with a solution that increases competition, lowers costs, and improves care for the American people,' said McCain.

'The so-called 'skinny repeal' amendment the Senate voted on today would not accomplish those goals.'

Trump responded on Twitter: '3 Republicans and 48 Democrats let the American people down. As I said from the beginning, let ObamaCare implode, then deal. Watch!'

The dramatic vote stunned observers, and sent the GOP's improvisational plans to cobble together an Obamacare repeal into a tailspin. “This is clearly a disappointing moment,” said Senate Majority Leader Mitch McConnell of Kentucky.

Party leaders had finalized the bill over a Republican lunch, and only released the bill at 10 pm Thursday night, casting aside GOP complaints about the need for regular order and a deliberative process from the Democratic push to enact Obamacare.

Even as the vote approached, numerous Republicans acknowledged that the 'skinny bill' was far from imperfect, and were voting for it only as a way to move forward toward a conference with the House – which would have kicked off another negotiation.

'Right thing to do': John McCain told reporters outside the Senate chamber that voting against the 'Skinny Repeal' was the only course of action he felt able to take

President Donald Trump blamed the 51 senators who voted down the 'skinny' Obamacare repeal bill for 'letting the American people down' around 2.30am Friday

Leaving the Capitol early Friday, McCain is pursued by reporters after casting a 'no' vote

'This is clearly a disappointing moment,' said Senate Majority Leader Mitch McConnell, R-Ky. 'I regret that our efforts were not enough, this time.'

'It's time to move on,' he said.

McConnell put the health bill on hold and announced that the Senate would move onto other legislation next week.

The key vote to defeat the measure was cast by McCain who returned to the Senate this week after receiving a diagnosis of brain cancer.

In an impassioned speech the day he returned, McCain had called for bipartisanship on major issues of national concern, and a return to the 'regular order' of legislating by committee.

The move came despite intense White House lobbying. President Trump personally called McCain Thursday night, Politico reported, after having hailed him for his return to Washington. McCain provided a critical vote to move to consider the bill.

Vice President Mike Pence, who was on hand in case needed to break a tie, was seen trying to work over McCain, but it didn't work.

'Watch the show,' McCain said before the vote occurred, in a hint of the drama he would set off about 1:30 am.

One person he tipped off was Senate Democratic leader Sen. Charles Schumer.

'I knew it when he walked on the floor,' Schumer said afterward, the Washington Post reported.

Three Republicans joined with all Democrats to reject the amendment, which would have repealed a mandate that most individuals get health insurance and suspended a requirement that large companies provide coverage to their employees.

It would have also delayed a tax on medical devices and denied funding to Planned Parenthood for a year.

Senator Ted Cruz, R-Tx., speaks with reporters after the failure of the 'skinny repeal' health care bill on Capitol Hill in Washington. He said it was 'not the end of the journey' and that he would continue to fight

John McCain told reporters to 'watch the show' ahead of the vote. Tension mounted on the floor as the vote was stalled for more than an hour

McCain, who spoke to Pence on the floor, later hugged Sen. Dianne Feinstein (in purple) (D-CA) while surrounded by a group of Democrats (above)

Senator Susan Collins, R-Me., walks to the Senate chamber at Capitol Hill for all-night voting

Senate Majority Leader Sen. Mitch McConnell, R-Ky., leaves the senate chamber accompanied by his staff after the senate voted down republican efforts to repeal The Affordable Care Act 49-51 with three Republican senators voting against the bill with the Democrats

Senator Ted Cruz leaves the Senate Chamber cutting a dejected figure after the Senate failed to pass a measure to repeal Obamacare

House Speaker Paul Ryan, R-Wi., speaks about healthcare at his final weekly press conference before The House of Representatives begins its summer recess on Capitol Hill in Washington on July 27

The final vote was 49-51. Republicans Lisa Murkowski of Alaska and Susan Collins of Maine joined McCain in voting no.

The amendment was a last resort for Senate Republicans to pass something - anything - to trigger negotiations with the House.

'It's time to turn the page,' said Senate Minority Leader Charles Schumer of New York. 'We are not celebrating. We are relieved.'

Health and Human Services Secretary Tom Price said in a statement the Trump administration would pursue its health care goals through regulation.

'This effort will continue,' Price said.

Ted Cruz, a hardline conservative who had previously warned the bill might not properly derail Obamacare, told reporters: 'Mark my words, this journey is not yet done.

'For seven years Republicans have campaigned on one central message that we would repeal the trainwreck that is Obamacare,.

'The losers tonight are the people who believed in the democratic process, believe that actually when candidates run and say: 'I will fight to repeal Obamacare' that that actually means they will fight to repeal Obamacare.'

Buoyed by a signal from House Speaker Paul Ryan, McConnell had introduced a pared-down health care bill late Thursday that he hoped would keep alive Republican ambitions to repeal 'Obamacare.'

JOHN MCCAIN's FULL STATEMENT John McCain at a news conference ahead of the Obamacare vote From the beginning, I have believed that Obamacare should be repealed and replaced with a solution that increases competition, lowers costs, and improves care for the American people. The so-called 'skinny repeal' amendment the Senate voted on today would not accomplish those goals. While the amendment would have repealed some of Obamacare's most burdensome regulations, it offered no replacement to actually reform our health care system and deliver affordable, quality health care to our citizens. The Speaker's statement that the House would be 'willing' to go to conference does not ease my concern that this shell of a bill could be taken up and passed at any time. I've stated time and time again that one of the major failures of Obamacare was that it was rammed through Congress by Democrats on a strict-party line basis without a single Republican vote. We should not make the mistakes of the past that has led to Obamacare's collapse, including in my home state of Arizona where premiums are skyrocketing and health care providers are fleeing the marketplace. We must now return to the correct way of legislating and send the bill back to committee, hold hearings, receive input from both sides of aisle, heed the recommendations of nation's governors, and produce a bill that finally delivers affordable health care for the American people. We must do the hard work our citizens expect of us and deserve. Advertisement

Senator Susan Collins was one of three Republicans to vote against the measure. She is pictured in the center all smiles before heading into the chamber

Principles: Senator Lisa Murkowski and Senator Susan Collins also voted against the repeal

Republican Sens. John McCain, Lisa Murkowski and Susan Collins voted against the 'skinny' Obamacare repeal bill, killing Majority Leader Mitch McConnell's last ditch efforts

McConnell had called his measure the Health Care Freedom Act.

It was not intended to become law, but to open a path for a House-Senate conference committee to try to work out comprehensive legislation Congress could pass and send to Trump.

So what happens next? Now the bill still has more than the required 50 Senators on board, the House must trash out what the final legislation will look like. This usually happens with those sitting meeting for a conference and would be compromised of members from both the House and the Senate. Once this is is done and is approved by both chambers, it is sent to Donald Trump's desk at the White House for him to sign it to law. The aim is for this to be done by the end of the week, according to Senator Mitch McConnell, who said: 'This is just the beginning. We're not out here to spike the football.' Advertisement

The measure would have repealed the unpopular Affordable Care Act requirement that most people have health insurance or risk a fine from the IRS. A similar requirement on larger employers would be suspended for eight years.

Additionally it would have denied funding to Planned Parenthood for a year, and suspended for three years a tax on medical device manufacturers.

States could seek waivers from consumer protections in the Obama-era law, and individuals could increase the amount they contribute to tax-sheltered health savings accounts for medical expenses.

Ryan seemingly opened a path for McConnell earlier Thursday evening by signaling a willingness to negotiate a more comprehensive bill with the Senate.

Some Republican senators had been concerned that the House would simply pass the 'skinny bill' and send it to Trump.

That would have sent a shock wave through health insurance markets, spiking premiums.

Minority Leader Chuck Schumer then took the floor after the vote and called for a bipartisan effort to make improvements to the existing law

Ryan sent senators a statement saying that if 'moving forward' requires talks with the Senate, the House would be 'willing' to do so.

But shortly afterward, his words received varied responses from three GOP senators who'd insisted on a clear commitment from Ryan.

'Not sufficient,' said McCain, who returned to the Capitol Tuesday. The 80-year-old McCain had been home in Arizona trying to decide on treatment options for brain cancer.

Sen. Lindsey Graham, R-S.C., initially said 'not yet' when asked if he was ready to vote for the scaled-back Senate bill.

But later, he told reporters that Ryan had assured him and others in a phone conversation that the House would hold talks with the Senate.

'I feel comfortable personally. I know Paul; he's a man of his word,' said Graham.

The convoluted developments played out as a divided Senate debated legislation to repeal and replace the Obama-era law.

With Democrats unanimously opposed, the slender 51-49 GOP majority was divided among itself over what it could agree to.

After a comprehensive 'repeal and replace' bill failed on the Senate floor, and a straight-up repeal failed too, McConnell and his top lieutenants turned toward the 'skinny repeal.'

It would have been the ticket to negotiations with the House, which passed its own legislation in May.

Vice President Mike Pence arrived at the Capitol late Thursday night, ready to cast a tie-breaking vote. He spoke to McCain on the Senate floor and left before the vote

But that strategy caused consternation among GOP senators after rumors began to surface that the House might just pass the 'skinny bill,' call it a day and move on to other issues like tax reform after frittering away the first six months of Trump's presidency on unsuccessful efforts over health care.

Ryan responded not long after with a far from definitive statement that blamed the Senate for being unable to pass anything, but said, 'if moving forward requires a conference committee, that is something the House is willing to do.'

'The reality, however, is that repealing and replacing Obamacare still ultimately requires the Senate to produce 51 votes for an actual plan,' he said.

The insurance company lobby group, America's Health Insurance Plans, wrote to Senate leaders Thursday saying that ending Obama's requirement that people buy insurance without strengthening insurance markets would produce 'higher premiums, fewer choices for consumers and fewer people covered next year.'

And a bipartisan group of governors including John Kasich of Ohio and Brian Sandoval of Nevada also announced against it.

On their own, the changes in the skinny bill could roil insurance markets. Yet the scenario at hand, with senators trying to pass something while hoping it does not clear the House or become law, was highly unusual.

'We're in the twilight zone of legislating,' said Democratic Sen. Claire McCaskill of Missouri'

Pictured, Pence heading to the Senate Thursday night. The Republican majority in Congress were unnabile to fulfill their political promise to repeal and replace Obamacare

During a press conference on Thursday night, Graham slammed the bill and said: 'The skinny bill as policy is disaster. As a replacement for Obamacare, it is a fraud.'

He added: 'I need assurances from the speaker of the House and his team that if I vote for the skinny bill, then it will not be the final product. I'm not going to vote for a pig in a poke.'

Ryan tried to assuage their concerns, saying: 'If moving forward requires a conference committee, that's something the House is willing to do.'

McCain branded Ryan's response 'insufficient', but the House speaker managed to convince both Graham and Johnson on a conference call to vote in favor of the bill, dubbed the Health Care Freedom Act.

McCain held out on declaring how he would vote, telling reporters to 'watch the show' as reporters and pundits scrutinized his body language on the floor.

At one point, a crowd of Democrats gathered around McCain, and he hugged Senator Dianne Feinstein before he mouthed an emphatic 'F***' during their friendly assembly.

Protesters gathered outside the Capitol Building yelled 'shame' and 'kill the bill' as Pence arrived

On Thursday night, the Congressional Budget Office said 15 million fewer Americans would be uninsured in 2018, with premiums 20percent higher by next year compared to the current law.

The number of uninsured Americans was also expected to rise to 16 million by 2026. The bill would also decrease the deficit by $178.8 billion over the next ten years.

Any Senate legislation would have been enough to kick the issue to a special negotiating committee with the House, which passed its own version in May.

Some of the Republicans hoped the panel would then agree on a new comprehensive health bill.

'I think people would look at it not necessarily based on its content, but as a forcing mechanism to cause the two sides of the building to try to solve it together,' Republican Senator Bob Corker said. 'That´s going to be the last chance.'

Pictured left to right, Sens. Lindsey Graham (R-SC), Bill Cassidy (R-LA), Ron Johnson (R-WI) and John McCain (R-AZ) announcing they would not support a 'skinny repeal' of health care

Earlier, the four senators demanded a guarantee from House Speaker Paul Ryan the bill would not be passed as it currently stands

WHAT WAS IN THE HEALTH CARE FREEDOM ACT? The eight-page bill unveiled on Thursday night would have: Repealed the individual mandate, which requires most Americans to have health insurance or face a penalty Repealed the employer mandate for eight years. Under the ACA, most large employers are required to provide insurance for workers Provide flexibility to the states by allowing the Department Health and Human Services to provide waivers faster to states that do not wish to follow the ACA Suspended the 2.3 percent tax on medical-device manufacturers for three years Increased funding to health savings accounts Increased funding for community health centers Defunded Planned Parenthood for one year Advertisement

Trump issued a tweet both Thursday morning and night urging Republican Senators to help fulfill his campaign promise to undo Obamacare

Despite McConnell's comments about moving on, Ted Cruz said: 'Mark my words, this journey is not yet done'

The effort to pass the 'skinny' bill came after a chaotic two-month push by Senate Republicans to pass their version of legislation that made it out of the Republican-controlled House of Representatives in May.

Members of the party, including President Trump, campaigned on a pledge to repeal and replace what they say is a failing law that allows the government to intrude in people's healthcare decisions.

The discussions came as the Senate rejected 45-55 a straight repeal of Obamacare with a two-year delay in implementation to allow Congress to work out a replacement. Seven Republicans opposed the measure.

The Republicans were: John McCain; Shelley Moore Capito; Susan Collins; Dean Heller; Lisa Murkowski; Rob Portman; and Lamar Alexander.

It was the Senate's second failure in 24 hours to repeal the 2010 law popularly known as Obamacare, which expanded health insurance to about 20 million people, many of them low-income.

Cancer-stricken John McCain voted against full repeal of Obamacare

Republican leaders had tapped a group to craft legislation largely behind closed doors, exposing rifts within the party.

While conservatives said the group's proposals did not go far enough, moderates said they could not support measures estimated to deprive tens of millions of health insurance.

Trump, who has been in office for six months, has come down hard on his fellow Republicans for failing to act on Obamacare, something that he had promised repeatedly in his election campaign last year. Some Senate Republicans were growing uncomfortable with the chaotic debate.

'We've got to have a more organized process,' Johnson said, noting the skinny repeal would simply kick the issue down the road. 'We just don't have the courage and really the intestinal fortitude to suck it up and ... do this right.'