US stock market closes higher after Trump hints that Iran war might be ending