The pardons were expected after Mr Trump’s yearslong campaign to rewrite the history of the January 6 attack.