The ruling by a three-judge panel of the D.C. Circuit Court of Appeals is a major legal setback for the former president who almost certainly will appeal.