This is being positioned as a national security issue that a foreign government has so much influence over the US public (and data on people if they want, like geolocation, interests, your contacts, etc).
Note: I'm not saying I either agree or disagree ... just pointing out the dynamics in the case being made.
Legally, the national security component is relatively minor to the case. It's played up to be the justification for the law but SCOTUS doesn't really get to decide whether that is good justification or even correct.