Moscow has released an American prisoner following the first known visit by a member of President Donald Trump's administration to Russia.