Safeguarding equality and religious freedom