A High Court judge has ordered the British government to publish its plans on tackling air pollution by May 9.