The former British colony, governed by China since 1997 under a “one country, two systems” formula that grants it a high degree of autonomy, was rocked last year by controversies that critics saw as signs of a squeeze by Beijing on its freedoms.