Defiling the European Union’s emblem and other foreign flags will be classed as a hate crime.