Mahmoud Khalil, a pro-Palestinian activist and US resident, appeared before a federal appeals court in Philadelphia.