In a big relief to madrassas in Uttar Pradesh, the Supreme Court on Tuesday upheld the constitutional validity of the 2004 Uttar Pradesh Board of Madrassa Education Law and set aside an Allahabad High Court verdict quashing it on the ground that it was violative of the principle of secularism.