The Massachusetts Legislature took a decisive step Monday toward a constitutional amendment banning gay marriage and legalizing civil unions, the first in a series of votes required over the next 2 1/2 years.