Former President Donald J. Trump and Vice President Kamala Harris spent the day in Pennsylvania, a battleground state, bringing an end to a tumultuous campaign.