McCain is a very petty and vain person as those in the Pentagon having to deal with him have long known.
For him, this vote is straight-up payback to Trump as was McCain’s role in the phony Steele dossier. Had nothing to do with healthcare policy.
Don’t forget that McCain also worked hard to stick it to Bush in 2001 when it came to the tax cuts.