With an incentive here, a mandate there, state legislators hope to nudge buildings to a low-emissions future of heating and cooling.