New York state passes thermostat law