The employees had worked for the U.S. Digital Service, a technology-focused unit rebranded by Mr. Musk and empowered by President Trump.