Subsidiaries of firms from Spain to Singapore are shelling out millions on Republican and Democratic election campaigns.