Some students were denied their diplomas during a high school graduation ceremony in Philadelphia