The US can only stay competitive by making it easy enough for global talent to want to come here and want to stay. In the past ~15 years, the US has really lost its edge on being the melting pot and welcoming immigrants in a nation built and populated by immigrants (except for native peoples).
PS: Not all CS/engineering degrees are created equal. There are some US institutions where their Computer Science (CS) Bachelor's degree is not accredited by a professional society while the Electrical Engineering (EE), Computer Engineering, etc. are. I switched majors to earn one that was ABET accredited. For new international students, it's vital to check the International Mutual Recognition Agreement (IMRA) for their degree to be sure it's widely recognized by the rest of the world. The cliche is a Russian physicist who ends up teaching US high school biology because of trouble with degree portability.
https://amspub.abet.org/aps/name-search?searchType=program&k...