The New York Times has endorsed Hillary Clinton and John McCain for their respective parties, noting that McCain “was an early advocate for battling global warming.”