The mayor of Paris, Anne Hidalgo, has won a long-running battle with the French government to introduce emergency traffic bans in the city when air pollution spikes.