I believe they would need the The state department’s approval
Before approving the proposal to buy the new submarine, the state government will put several factors into consideration.
Including things such as the federal funding that is allocated for military (usually different depending on the current president) and how crucial is the purchase for the state ( in war period, the approval might be made a lot faster)