Actually, the fact that this occurred in Quebec has little bearing on the story. Ontario as well as the rest of the country have similar provisions in their laws (courts will decide issues involving children in the best interest of the child).
The judge in question, as a Superior Court judge, is appointed by the federal government, not the provincial government. And is case some of you are thinking that this is another case of a left leaning judge appointed by those damned liberals who are ruining the country - the judge in question was appointed last June by the Harper administration.
That said, I hope the decision is overturned on appeal.