Berkeley reverses its ban on natural gas in new homes after a legal setback