 Shares of Stride Inc. soared after hours on Tuesday after the online-education company beat Wall Streets expectations for second-quarter sales and profit as it saw growth in enrollment powered by career-related learning. 