Appeals court upholds New York gas appliance bans