Pete Hegseth faced tough questions from lawmakers over the effectiveness and cost of the Iran war during a hearing.