John Walker Lindh, the American man captured in Afghanistan in 2001 and later convicted of providing support to the Taliban, was released from an Indiana federal prison Thursday after serving 17 years of a 20-year sentence.

The planned release of the man dubbed the “American Taliban” had drawn opposition and has renewed questions about how to deal with convicted terrorists who now are finishing their time behind bars.

The...