The constitutional court rules that the law, brought in last year, breached rights on religious freedom.