Gay rights activists said they were astonished by the level of support for the bill at a time when most states are  focusing on how to prohibit same-sex unions in the wake of court decisions favoring gay rights.