US and Russian officials ended their controversial meeting in Saudi Arabia on the future of a post-war Ukraine and pledged to explore closer economic and diplomatic ties.