Parts of the Duke of Sussex's appeal against a High Court ruling regarding his security in the UK will be held in private, it has emerged.