The deal to sever China’s ties to the Panama Canal could boost its influence elsewhere in the region.