Benny Tai and Joshua Wong were among dozens sentenced in a controversial national security trial.