Trump also hinted at China’s growing influence around the canal, which connects the Atlantic to the Pacific oceans.