U.S. appeals court reinstates global warming lawsuits brought by 8 states