The President accused China of “lovingly, but illegally, operating the Panama Canal.” The truth is more complicated.