National Security Law for HKSAR: Beijing says legislation will safeguard city's prosperity