US court upholds New York City gas ban, rejects 'flawed' Berkeley opinion