Trump’s comment came as pressure mounts for his administration to find a quick resolution to a war against Iran.