No obligation to exclude trans women under ‘misunderstood’ Supreme Court ruling, former top judge says