The state’s Energy and Environmental Affairs secretary plans to step down next week after three years of helping drive Massachusetts’ aggressive climate and energy initiatives.