New research shows that it's not just the climate that benefits from the green energy transition.