The Kremlin release of an American prisoner and a Saudi backchannel bolstered the rise of Trump’s longtime friend.