After months of twists and turns, Canadian Pacific Railway Ltd. sealed a $27 billion deal to acquire Kansas City Southern, claiming a prize that would create the first railroad spanning the U.S., ...