Not a huge fan of Biden, but wasn´t he in a lose-lose situation here? The Taliban takeover was inevitable as soon as the foreign troops were out, whether in 2021 or 2031.
Taliban was in control in 2001 before Bush, and they regained control after the Americans left. Are the Americans supposed to stay there forever? This peaceful transition in cooperation with Taliban was never going to happen anyways, whether with Trump, Biden whoever.
An Afghan friend also told me countries like China, Iran, Pakistan and some of the Arabian Peninsula were happy for Taliban to gain control to get rid of the American influence/presence in the region for good.