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

Podcast: What TheStreet's Interns Learned From Jim Cramer and Action Alerts PLUS

Podcast: What TheStreet's Interns Learned From Jim Cramer and Action Alerts PLUS

Bank of America, Tariffs and the Goldman Sachs CEO Change: Jim Cramer Rewind

Bank of America, Tariffs and the Goldman Sachs CEO Change: Jim Cramer Rewind

Lee Munson on the Market, Trade and the Possibility of a Recession

Lee Munson on the Market, Trade and the Possibility of a Recession

What's My Data Doing in the Cloud? -- 60 Seconds

What's My Data Doing in the Cloud? -- 60 Seconds

Here's Why Alphabet, Facebook and Amazon Earnings May Overshadow Tariff Worries

Here's Why Alphabet, Facebook and Amazon Earnings May Overshadow Tariff Worries