Trump attends presidential immunity hearing at US Court of Appeals