The "unconditional discharge" sentence comes 10 days before Donald Trump is due to be sworn in for a second nonconsecutive term in the White House.