Hong Kong has pulled off an amazing win against a dire threat to its freedoms