Trump’s remarks come as Republicans grapple with the political fallout from the eight-month war with Iran.