The prisoner swap was a kind of validation for President Biden, soon after he abandoned his re-election bid.