A minerals exploration deal between the superpower and the Cook Islands is Beijing’s latest push for influence in a region historically aligned to the West.