Solicitor General Lucy Rigby had referred the case to the Court of Appeal.