New Jersey judge paves way for same-sex marriages