The City of Berkeley has settled a lawsuit by the California Restaurant Association to repeal that city’s first-in-the-nation ban on gas hookups in new construction, dealing a final blow to more than a hundred similar measures in California cities including Sacramento.