It is absolutely within the purview of a Sovereign Nation to decide, within the confines of relevant statutes, what companies are allowed to operate within its borders. Trade restrictions are absolutely normal, and are well inline with established practices. What are economic sanctions, after all, but a restriction on the freedom to conduct commerce?