ALBANY — State senators were poised to decide the fate of same-sex marriage late Thursday night or Friday morning as their legislative session wound down to its final hours.