As the United States takes its first steps toward mandating that power companies generate more electricity from renewable sources, China already has a similar requirement and is investing billions to remake itself into a green energy superpower.