Musk, a confidante of the president-elect, is set to co-lead Trump’s newly created Department of Government Efficiency.