The lawsuit was initially rejected by the Supreme Court before it was revived by Republican attorneys general in three states.