Former Guantánamo prosecutor settles free-speech lawsuit