A military veteran who was sentenced to life in prison for selling $30 of marijuana will be freed