The government gave an undertaking in the High Court