The Federal Election Campaign Act prohibits foreign nationals from buying "advertising" that influences the campaign. I think the FEC would say that foreign nationals are prohibited from:
Making any disbursement for an electioneering communication.
(https://www.fec.gov/updates/foreign-nationals/)
This is considered to be something sacred in US politics (cough even though we interfere with non-US elections all the time cough).