The Elon Musk operatives were abruptly shifted to the department’s immigration enforcement unit as part of an expanding effort to use personal data in deportation cases, one official said.