The European Court of Justice has ruled that European Union member states may ban the sale of unwrapped chewing gum from automatic vending machines on health grounds, if they so choose.