Courts in the European Union can order Facebook to remove worldwide comments by users of its service that have been declared illegal, the European Union's highest court ruled on Thursday.