The United States is a primarily open society. Keeping something as easily transportable as source code from another nation-state is nearly impossible. Even during the Cold War, the Soviets were able to accelerate the development of Buran due to how much information they were able to get about the US Space Shuttle. Things were far less connected and far more secure back then. Today it would be incredibly difficult to secure so much source code.