The Chinese government has given its go-ahead to an agreement that will see ByteDance relinquish majority control of the U.S.