The legal landscape for gay marriage battles shifted dramatically Wednesday with the Justice Department’s announcement that it will no longer defend the constitutionality of the federal Defense of Marriage Act.