Prince Harry's attorney has told court judges he was treated "unfairly" when he was stripped of his British security detail.