After a long night of deliberation, the Republican's plan to repeal and replace President Barack Obama's signature piece of legislation, the Affordable Health Care Act, has failed in the Senate.

The final vote came down to three Republican senators that sided with 48 Democrats to deliver the final 51-49 tally, according to The Associated Press. "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."

Senator John McCain, who was recently diagnosed with brain cancer, joined Sens. Lisa Murkowski and Susan Collins in defending Obamacare after being staunch critics in the past.

This break from party lines enraged President Donald Trump and he responded with a tweet around 2:25 a.m. 

In a statement released shortly after his vote, McCain defended his decision and encouraged senators from both parties to provide a better bill to ultimately replace the Affordable Health Care Act.

"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," McCain said. "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 the 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."