Sanction for what exactly? Sanctions against nations don't work. USA has been sanctioning Cuba, Iran for half a century, no regime change whatsoever, it only hurt the population in these countries. USA are sanctioning Russia right now, is Putin gone? No.
And you want to sanction Apple or Google for what? under what law? Isn't the whole argument made all the time now that these "private companies" are free to censor whoever they want for whatever reasons and they don't have to respect the concept of freedom of speech on their platform?
But then the next logical step is to propose the action that actually works: sanctions against individuals. Perhaps that's what should be done - sanctions against individual decision-makers at Google and Apple?..