The Northern Territory’s agreement to pay $35 million to settle a class action on behalf of 1,200 young people who allegedly suffered human rights abuses while in detention was a “discount” on the claimed value of compensation owed, a court has heard.