UK court opens path for secret Royal memo publication