A federal appeal court ruled against Donald Trump in a dispute involving the former president's efforts to keep documents taken from his Florida home out of the hands of investigators.