President Trump said he was "shocked" to see millions of Iranians mourning Ali Khamenei, claiming he thought the late supreme leader was widely hated.