Stocks rally on signals Iran war may end