China’s Internet giants from Tencent Holdings Ltd to ByteDance Ltd have shared details of their prized algorithms with Beijing for the first time, an unprecedented move aimed at curbing data abuse that may end up compromising closely guarded corporate secrets.