Elon Musk is wielding a chainsaw against US government departments, potentially culling tens of thousands of jobs, as part of a huge plan to shrink the government and slash federal spending.