The European Court of Justice has ruled