Massachusetts became the first state to elect an openly gay attorney general, while the gay candidate in Maine's gubernatorial race narrowly lost his chance to make history. Nationally, gay-rights activists worried that conservative gains in Congress would hamper their bid for federal anti-bias legislation.