Cargo ships sit docked at the Port of Newark in Newark, N.J., in June. Trade has slowed this year around the world, troubling economists.