Legislature sets targets for energy use