The hedge fund sold its Canadian Pacific stake to fund the move, betting on Amazon’s earnings growth despite trade and tech pressures.