The deal follows a February cease-and-desist letter from Disney accusing ByteDance of pirating Star Wars and Marvel characters.