Stocks settled higher after a choppy session. Indexes had veered between losses and gains for much of the day as former FBI director James Comey testified before the Senate. During his hours-long appearance, Comey said the White House had lied in the aftermath of his firing. Yahoo!  (YHOO) rose after its shareholders approved the company's sale to Verizon (VZ) . The latter will reportedly cut around 15% of the Yahoo! and AOL workforce following the deal's closure. Snap  (SNAP) tumbled after Nomura analysts warned of slowing daily active user growth. The firm said worldwide downloads of the app had fallen 22% in the first two months of its second quarter compared to a year earlier. Alibaba  (BABA) climbed after forecasting another massive surge in full year revenue. China's biggest e-commerce company anticipated annual sales up at least 45% in fiscal 2018.

More from Video

TheStreet Rewind: How to Make 'New Fashioned Wall Streeter'; Twist on a Classic

TheStreet Rewind: How to Make 'New Fashioned Wall Streeter'; Twist on a Classic

Thankfully Our Favorite #FearlessGirl is Not Going Anywhere

Thankfully Our Favorite #FearlessGirl is Not Going Anywhere

Jim Cramer: Will Apple or Amazon Become the World's First Trillion Dollar Stock?

Jim Cramer: Will Apple or Amazon Become the World's First Trillion Dollar Stock?

It's Dumb to Think Legalizing Weed Is Still a Political Issue

It's Dumb to Think Legalizing Weed Is Still a Political Issue

Video: How to Select Mutual Funds in Your 401(k)

Video: How to Select Mutual Funds in Your 401(k)