A federal judge in New Orleans upheld Louisiana’s ban on same-sex marriages on Wednesday, a rare loss for gay marriage supporters who had won more than 20 consecutive rulings overturning bans in other states.

U.S. District Judge Martin Feldman also upheld the state’s refusal to recognize same-sex marriages performed legally in other states. His ruling was the first to uphold a state ban since the U.S. Supreme Court struck down part of the federal Defense of Marriage Act last year.