The announcement sets up a possible rematch of 2020’s bitter contest with President Joe Biden.