President Donald Trump has named an acting secretary of defense until his nominee, Pete Hegseth, gets confirmed by the U.S.