National security law to ensure freedom, security: HK LegCo president