China’s main goals in South America are economic, but it also hopes to win public and political support.