You have hit upon another complex situation. Russia and Iran are allies but one must never forget as producing countries they are also competitors.
Russia in many ways works with American energy companies in that there are some shared goals.
China hopes to use the Shanghai Cooperation Organization to help widen its access to Central Asian energy. Russia, meanwhile, is working to keep Beijing’s energy import ambitions in check.