US sentences ex-Taliban commander to 42 years in prison for hostage taking