President Joe Biden on Tuesday defended his decision to pull troops out of Afghanistan, saying it was in the US national interest.