President Biden preserves his political legacy by dropping out of race, historian says