Globally, investors are pouring more money into renewable energy than ever — even as they pull back on spending in the U.S. Over the first six months of this year, a total of $386 billion flowed to projects ranging from small rooftop solar installations to massive offshore wind farms, according...