Harshly criticizing Gov. Andrew M. Cuomo for the tactics he used to win approval of same-sex marriage, a state judge has ruled that a lawsuit challenging the enactment of New York’s Marriage Equality Act can proceed.