Whether the state can actually enforce its ban on selling gasoline- and diesel-powered cars in 2035 remains unsettled.