Keneally and O'Farrell commit to retain protections for religious freedom