The hearing was disrupted by protests and a shouting match as Hegseth testified at a pivotal time in the war.