N.Y. judge lifts ban on gay nuptials