The Massachusetts Senate has voted to repeal a 1913 law used to bar out-of-state gay couples from marrying here. The law prohibits couples from obtaining marriage licenses if they could not legally wed in their home states. After Massachusetts became the first state to allow gay marriages in 2004, then-Gov. Mitt Romney ordered town clerks to enforce the little-known law and deny licenses to out of state couples. The repeal effort has the support of Gov. Deval Patrick, whose 18-year-old daughter announced publicly last month she is a lesbian.