What's the US military budget? Let's say DOD decides it wants onshore chips. $10B is peanuts; $100B is easily doable if they say it's important enough- which it is.
the DoD budget was around 700 billion, no one is going to spend around 1/10th of their entire military budget on semi conductors at cost. They're going to assume some returns on these fab factories.