Mr. Wei and other Cosco officials were in the United States to meet port officials in Massachusetts, where they had reached an agreement with the Massachusetts Port Authority to begin a weekly shipping service between Shanghai and Boston beginning next year.