Speaking in gleefully sarcastic terms to a commencement ceremony at the University of California, Irvine, Mr. Obama likened those who deny climate change to people who would have told John F. Kennedy, at the dawn of the space program, that the moon “was made of cheese.” He saved his most…