Two Chinese companies, a pair of Chinese individuals, and one Iranian entity have been sanctioned for cyber attacks on countries in the European Union.