The rationale was "His presence would be disruptive to the educational environment." (That's a very generous translation of「皆に迷惑かけるだろ。」) Forgive me if I have to be oblique about the rest of the story, but it does not include "When apprised that this happened, people in a position of authority immediately said 'That is outrageous! Enroll the kid!'" A school which would take him was eventually located.)
Even in Japan, I'm pretty sure that principal was way out of line, but it would certainly take way longer than 28 hours to do something about it.