OTTAWA — The Supreme Court of Canada has agreed to hear a legal challenge of Quebec's secularism law, known as Bill 21.