A new law sets the nation’s most aggressive targets for reducing carbon emissions and is intended to drive dramatic changes over the next 30 years