Musk has repeatedly stated that "socialism" and government handouts are bad, so I'm sure he'd reject spacex getting financial support from the gov.
Government should not be just handing out money without getting at least that much value back. Government may very well hire a company to do something because it's more cost effective than DIY.