Unsealed documents shed light on proceedings that led to Chelsea Manning's imprisonment