Donald Trump cast doubt on the science of climate change even while saying he’d be open to keeping the U.S. in the Paris climate accord.