The Massachusetts official who spoke of the need to “break the will” of greenhouse-gas emitters has resigned, saying his remarks were misinterpreted.