The law requires new measures to promote energy efficiency, sets a schedule for closing old fossil fuel power plants, and requires electricity to come from 100 percent renewable sources such as solar or wind. Energy companies must pay penalties for not meeting their targets, and part of that revenue would fund job training and renewable energy programs in historically disadvantaged communities.