WASHINGTON—The Obama administration said Friday it will recognize same-sex marriages performed in seven new states, in the wake of a Supreme Court action last week clearing the way for such unions.

The high court last week effectively legalized gay marriage in five states when it let stand lower court rulings that allowed same-sex unions, and other appeals court rulings this month have been adding to the list.

Attorney...