China unveils security law for Hong Kong, city's freedoms in doubt