Uhhh, dude - it's not illegal. As others have mentioned, it's a foreign (hostile) actor contributing to election interference efforts in violation of established law. It is essentially enforcing another law that's already on place!
The complication with fb et al is that as US companies, there are other laws that protect their actions (and I'm not going to minimize the effects of powerful lobbyists).