A Philadelphia judge has ruled that a kindergartner should not have been expelled from a charter school because he allegedly touched his teacher’s legs after she complained that they hurt.