The world’s biggest polluter is now the global leader in renewable-energy spending