Vice president JD Vance cast the tie-breaking vote in the Senate as Hegseth was confirmed by a margin of a single vote.