The top trade-container port in the United States has long belonged to the West Coast but, for the past three months, has shifted eastward.