Trump advisor smacked down by appeals court over demand to keep hundreds of government documents