They can legislate anything they want and if it means making sure “Evil Oil” can’t get a hold of any supplies they will do it. They may not make law prohibiting from doing business in Iraq but they can make it so cumbersome to get started that no one wants to.
All they can do is make it difficult for an American company. The remainder of the world and Iraq is none of the Senate's business.