Treasury has seen an internal struggle over how much access Musk should have to the system, which is critical to trillions of dollars in payments by the government each year.