Los Angeles has banned new oil and gas drilling and set a 20-year phaseout for existing wells, amid health concerns, environmental justice demands and expected industry litigation.