A lawyer said children detained there had been punished with restraints and seclusion.