The UK government acted unlawfully in approving a climate plan, a High Court judge has ruled