Playing the role of mediator between Russia and the U.S.-as well as between Ukraine and the U.S.-is one way for Riyadh to curry favor with global powers while enhancing its own diplomatic clout.