Orthodox groups celebrate victory for religious freedom, liberal Jews bemoan civil rights loss, as Catholic agency gains the right to not put children in care of same-sex couples