Mr. Trump, the first-ever sitting or former U.S. president to be convicted of a crime, has long said he planned to appeal.