The White House has attacked the New York Times for publishing a draft report that warns of severe consequences from climate change if action is not taken.