The federal judge who oversaw Donald Trump’s 2020 election interference case has denounced efforts to rewrite the history of the US Capitol attack.