President Joe Biden and former President Donald Trump have earned enough delegates to win their parties’ presidential nominations and are headed for a November rematch.