Move toward religious ceremonies for same-sex couples highlights need to overhaul marriage law