US appeals court upholds life sentence of convicted al-Qaeda operative