It was not just a release of 5000 talibans. That was exchange for 1000 Afghan security forces held by the Taliban which lead to comprehensive peace negotiations between the Taliban and the Western-backed Afghan government. At the time Trump left office there were only 2500 U.S. troops there and there were no combat casulties for 18 months. The Afghan government and the Taliban each controlled their respective territories, neither was mounting major offensives.
And after 20 years, more than 2,400 American deaths, 20,000 Americans wounded, and over $2 trillion spent, it was the right desicion to end that nightmare in Afganistan and signed agreement of withdrawal from there. But unlike now, it would be organized withdrawal of civilians, units and military equipment in agreement with the Taliban. Biden trampled on the deal after taking office, the Taliban did not forgive it and chaos ensued.
So again, how was that Trump's fault?
- - - Updated - - -
I hope it's clear to you that anyone can write whatever they want in wikipedia?