Section 1B. The school committee of any city or town may permit any child attending its public schools to participate in voluntary prayer with the approval of such child’s parents before the commencement of each daily school session. Notwithstanding any provision of law to the contrary, no city or town which permits such prayer shall be denied any funds for school purposes to which it may be entitled from the commonwealth.