Many of that former president’s supporters violently attacked the US Capitol in a failed effort to extend his time in office.