Trump loses appeal court bid to reinstate travel ban