The budget in FY25 was finalized by the respective federal agencies in the fall of CY23 (and worked on for many months before that). The transition team itself comes to the agencies and will get familiarization briefs/updates on current operations/major organizational changes etc. They don't direct policy, and absolutely not to the level of directing acquisition of specific programs.
My $0.02 on what I think happened -- the FY25 spending projection product that the financial managers/acquisition folks at the State Department probably put a number in as a placeholder (or misconstrued the $400K number as $400M, because budget reports for a department the size of the State department typically program dollars in "dollars K", ie: $400,000K = $400M - in a quick look document like that, you would typically round numbers for an executive summary, like the type that the $400M number was pulled from, I could see that being a pretty benign clerical error that, especially given the flux that occurs during a transition, was likely overlooked in review until it went public.
Even if the transition team were to have come in and say "sign up the State Department for a $400M Tesla contract", the actual people with the authority to make those type of large acquisitions would have been holdovers from the Biden Administration and would have told the transition team to fuck off lol