The European court’s decision sends the dispute back to the High Court as the Government pursues legislation to remove the restriction