Donating or Volunteering for a Political Campaign:
U.S. citizens and lawful permanent residents, including those living abroad, may contribute money to and volunteer with federal political campaigns.
For more information, see: https://www.fec.gov/help-candidates-and-committees/foreign-nationals/
Foreign nationals, including DACA, TPS, and nonimmigrant visas holders cannot give money to political campaigns. They may, however, provide volunteer (unpaid) services to political campaigns, so long as they are not in a decision-making role.
For more information, see: https://www.fec.gov/updates/foreign-nationals/