MONTREAL — Quebec’s secularism law, known as Bill 21, was challenged in court as soon as it was adopted more than five years ago.