Forty-five prominent activists in Hong Kong were sentenced to jail for up to 10 years on Tuesday, sparking criticism from foreign governments and rights groups. Beijing defended the decisions.