We already do that in the electoral process. Campaign contributions are "speech," while at the same time we ban foreign nationals from such speech (although as far as I know the constitutionality of the issue has not been tested beyond the 9th Circuit.)
https://cdn.ca9.uscourts.gov/datastore/opinions/2019/05/16/1...