A federal judge blocked the Trump administration's move to ban TikTok downloads in the U.S. just hours before it was set to take effect.