Lobbyists representing foreign governments have bundled nearly $2 million for the president’s re-election campaign.