The King and Queen have wrapped up their royal visit to the United States, given a formal farewell by the President and the First Lady.