There is a conflict of interest issue when companies funded almost entirely by government contracts uses money in this manner. The government could easily specify as a term in their contracts that are not allowed to do this. Considering the amount of funds involved, I think this is more than reasonable.