Deal expected to allow TikTok to keep operating in US, where it risks being shut down as soon as Sept 17