Interesting article from 2015 came up on my Facebook feed from LA Times. Yes, government has played a big role in the work of Elon Musk's enterprises.
In my opinion, this is not necessarily a bad thing. Often it does take a partnership of public and private enterprise to accomplish things.
Much of our public debate seems to be about which is better; private enterprise, or government. Often the two are intertwined for better, or for worse. It's much of the way our society functions. No one can fully take credit; like in the phrase, "it takes a village."