The government of the Northern Territory will pay $35 million to settle a class action on behalf of 1,200 young people who allegedly suffered human rights abuses while they were in detention, including excessive force, handcuffing, strip searching and isolation in cells.