Plain cigarette packets legal, European court rules