The app stopped working late Saturday because of a federal law that called for TikTok to be banned if it didn’t find a new owner that isn’t Chinese, but was coming back partially by midday Sunday.