Trump’s comment seemed at odds with his administration’s move to send more troops and warships and request another $200 billion from Congress to fund the war.