With Khamenei dead and the future of Iran’s hardline anti-Western government in doubt, Russia now finds itself in a position to lose greatly.