Investigators found that the principal of View Ridge Elementary School in northeast Seattle told staff to lock the gates around a second-grade boy to manage his behavior issues. District leaders called the situation “egregious” — but the district had approved of it as a suitable space for the child.