The U.S. Department of Agriculture has agreed to restore webpages related to climate change after it was sued earlier this year over the deletions