Thanks for pointing this out. As far as I have seen, the rule has been applied so as to construe 'foreign nationals' as people who have neither US citizenship or permanent resident status. Basically, if you are entitled to the protections given by the Bill of Rights, you may donate to political campaigns.