The video-sharing app TikTok has apparently reached a deal with Oracle to take over its U.S. operations. Microsoft confirmed Sunday that its offer had been rejected. President Trump had ordered TikTok’s Chinese owners to sell, citing national security.