The US has made a deal to trade Britney Griner for a prisoner the US had been holding.