Pete Hegseth, Donald Trump's controversial choice for US defence secretary, has been confirmed for the job.