Of course his dismissal was consistent with Catholic teaching. But understand that the attacks against the school for being Catholic, against the administration and the very principles of the school, are coming from its own students and their parents. Of course, they're being whipped into a frenzy by outside Gaystapo groups and a hostile media, but there is no excuse for behaving like absolute pagans when you attend a Catholic school.
There should be a massive purge of students who display hostility toward upholding this standard. But then, the school probably can't afford that.
It is the school’s responsibility to raise good Catholics, allowing the man to work there so long was a grievous mistake. You reap what you sow, obviously this school failed them for some time to get this backlash. It’s their mess to clean up and if purging is necessary, so be it.