Beijing has decided that Hong Kong courts should get approval from the city's chief executive before allowing a foreign lawyer to act on national security cases.