Dying Brooklyn lawyer, imprisoned for terrorist involvement, is finally released