The UK breached EU law by allowing a coal-fired power station to emit too much air pollution, the court of justice (CJEU) has said.