U.S. Secretary of State John Kerry’s attempts to build warmer relations with two U.S. allies in Latin America may be hindered by resentment after reports about an American spy program that widely targeted data in emails and telephone calls across the region.