To be clear, this applies in public workplaces, e.g. civil service, schools, etc. It does not apply to private workplaces, who can make their own decisions. Also, the Supremes ruled that they cannot ban religious symbols (which the hijab is not, IMHO, it's cultural but that's another discussion) in the legislature, i.e. MLAs are exempted.
That said, hell yes, it contradicts our constitution. The province admitted as much by using the notwithstanding clause (which is a bit like a Get Out of Jail free card for parliaments, they can do whatever they like as long as they invoke it). Which is exactly why the notwithstanding clause is a very very bad idea.
Also, I will point that while all members of the court agreed the the notwithstanding clause was properly used (i.e. this is an argument against the clause itself, not the use of it), three did dissent from the opinion that the court could not even rule on the constitutionality of the ban and basically said it is not constitutional.
But the courts can't build those, that's for politicians. The courts are ruling on laws in the context of the constitution, they don't get to rule on the constitution itself.