President Donald Trump thanked Kim Jong Un as he welcomed home three Americans who had been detained in North Korea.