Mr. Musk dug into his companies’ budgets, preferring to cut too much rather than too little and to deal with the fallout ...