It’s TikTok’s first deal with a state as it fights similar claims nationwide.