Sen. John McCain mocks Obama for calling climate change a threat as Isis advances