The event marked the first time in 10 years since a sitting president has invited former leadership back for a revealing of portraits — a tradition that stalled during the Trump years.