The principal had the 7-year-olds in his office as punishment when he pulled the gun on them, the lawsuit said.