Murthy’s exit was the second of an Indian American in a high-profile position in the federal government following that of Preet Bharara, who was among several US attorneys asked to resign by Trump in March.