Elon Musk joined Donald Trump in the Oval Office as the US president signed an executive order allowing the tech billionaire to make large-scale reductions in the federal workforce.