Not sure about that. The Senate came to the final vote, and McCain made his drama march to the floor to vote it down.
The republican party is totally at fault.
McCain was a RINO and there are several more in the party, but Republicans have chipped away at it every chance. They have lost some cases that would have killed it and won a few that put it on life support. The government can not force you to buy insurance now for one which pretty much gutted Obamacare.