U.S. Senator John McCain, a former prisoner of war in Vietnam who ran unsuccessfully for president as a self-styled…