How trains linked rival port cities along the US East Coast