This is actually proof the free market works. It is not economical to produce chips in the US. But it is strategically important. So the government is stepping in to provide an incentive that makes it economical.
Whether you agree with the strategic importance is a different story.