Dozens of prominent activists have been given prison sentences of up to 10 years as part of a sweeping law imposed by China that crushed a once-thriving pro-democracy movement.