The prisoner exchange was finalized during the final hours of the Biden administration and comes amid ongoing tensions between the US and Afghanistan.