President Joe Biden's foreign policy legacy includes the American withdrawal from Afghanistan, support for Ukraine, and the Israel-Hamas conflict.