If technology and social media companies do not want to assist
governments in tracking individuals' behavior
I'm stuck right at the first "IF". :)
Every single company wants to understand user behavior so that "they can better tailor their product / service / user experience" to that user (also read as: "sell more to the user based on that understanding").
Does this mean that the companies want to track user behavior - but they don't want to cooperate with their own government to do it? That'd be a bit of hypocrisy and as @pascal said, would be hard to defend in court (even when your primary service to the customers is based on privacy).
Selling access to the advertisers (with or without revealing key identifiers) is only one aspect of this activity. If as you say,
Apple cannot access it even though they created the system that stores
then the nature of the question changes. It presumes that Apple doesn't want to understand user behavior beyond the anonymous aggregations. In this age of hyper-narrow targeting, that would be a hard decision to take for any company. Also, when you collect sufficient quantity of non-key identifiers, it could easily get very close to identifying the individual.
Privacy is hard.