An appeals court ruling deals another blow to the former president one day after trial testimony ended