US President Donald Trump has pardoned more than 1500 defendants who participated in the attack on the US Capitol.