The Treasury Department has given Elon Musk access to the federal payment system that handles trillions of dollars in government expenses.