Russia, one of Iran's few allies, could profit from the war as it navigates diplomatic relations with Iran and Israel.