British political commentator Sami Hamdi plans to leave the U.S. after spending over two weeks in immigration detention