N.Y. gay marriage bill defeated by wide margin