Same-sex marriages must be allowed in N.J., judge rules