Musk has been leading an outside effort to aggressively curtail government spending through funding cuts and firings.