Why an appeals court rejected Trump's immunity claim