Religious freedom for one group inevitably leads to discrimination against other groups. That is human nature. It is awful when  children, who have no understanding of what it is about, are treated differently because of the religious beliefs of their parents.
This judgement is very welcome. Specific religions have no place in schooling other than as part of history or general religious studies.