This question already has an answer here:
What happened to Bobbi and Hunter in "Parting Shot" (Agents of SHIELD S3E13) and why?
What happened with the whole interrogation thing?
There didn't seem to be any logical progression to the way things unfolded. At one point it was like they decided they actually wanted to go in front of the Russian firing squad for.. some reason.. but then all of a sudden the political assassination charges are spontaneously dropped, but wait; that somehow means they're never allowed to go back to their super secret, clandestine intelligence agency. In all honesty; it seemed like the actors were leaving the show and the film crew just sort of smashed this scene together in a hurry and ran with it, despite the fact that it made no sense.