Forty-five ex-lawmakers and activists were sentenced to four to 10 years in prison Tuesday in Hong Kong's biggest national security case under a Beijing-imposed law that crushed a once-thriving pro-democracy movement.