The government shouldn't be able to buy data that would be unconstitutional or unlawful for them to gather themselves.
On the other hand if a company is just aggregating something benign like weather data, there's no need to bar the government from buying that instead of building it themselves.
Now that sounds like a good argument to make in court! How do we do it?
That is trickier to decide on and surely there's room to debate.