He didnt care about the vote.
He wanted to flip the bird to Trump - that was worth his life.
All that effort on McCain’s part is sort of pointless because, in the end, Trump still will get the last word.