Hong Kong has made legislative changes that will require local courts to obtain government approval before a foreign lawyer can represent a client in national security cases.