The Uttar Pradesh government will challenge the Allahabad High Court’s order quashing the detention of a 24-year-old student activist under the National Security Act (NSA) and directing the recovery of Rs 5 lakh compensation from the salary of the Gautam Buddha Nagar District Magistrate and other officials, Solicitor General Tushar Mehta told the Supreme Court on Wednesday.