A high court has ruled that people living in the capital can vote next year on whether they should forbid most vehicles from passing through after years of campaigning.