Many celebrities took notice.

Cher, Billy Crystal, Jason Alexander, and Kal Penn offered their thanks over Twitter to McCain.

Great respect for @JohnMcCain who put country over party, Crystal tweeted.

He was a war hero because he was captured.

I like people who werent captured.

They should not be overlooked, Cash tweeted.

For not being careless and loyal.

And for fighting, Kristen Bell wrote, though John Legend tweeted the bill should have lost 95-5.

He added, I have a hard time calling the 3 republicans who voted no heroes.

It was obviously stupid and awful.

And Trump did lash out on social media.

3 Republicans and 48 Democrats let the American people down, the president tweeted.

As I said from the beginning, let ObamaCare implode, then deal.

See more reactions below.