The government has won the latest court challenge over the UK’s air pollution crisis.