The California city’s decision is a blow to a developer’s plans to use a former Army base as an export terminal to ship coal to overseas markets.