Senior counsel says government has behaved in ‘rotten way’ by failing to share information on decision to end practice of officers displaying identification numbers. But government lawyer tells High Court the policy itself is sound and satisfies Hong Kong’s Bill of Rights