The United States has benefited tremendously from the decisions to fund the National Science Foundation (as well as other investments in science) for decades. Other countries have seen the wisdom in those investments and seem to be committing much more to those investments than the US lately. I think it is very wise of them and will serve the world well. But I fear the United States has already allowed itself to lose a great deal of the competitive advantage it built up in the middle of the last century.
In the last couple decades we have been able to coast on the lead we had. We could have many of the best minds come to our colleges and then keep them here once they graduated with advanced degrees. However, the lead we had is rapidly being eliminated. This does not mean the US will immediately be uncompetitive. But it will mean one of the great advantages we had will be greatly reduced.
The United States still has competitive advantages that will continue to serve us well in harnessing advanced technology for economic gain. But others have been making strategic decisions to gain some of those advantages for themselves. And the United States will almost certainly continue to see its scientific and engineering leadership in the world erode. And the economic consequences will be dramatic.