Pete Hegseth takes oath as defense secretary amid controversy, vowing to strengthen U.S. military and deter threats.