Defense Secretary Pete Hegseth rejected the idea of an "endless" war with Iran. But President Donald Trump later insisted there was no fixed timeline