Palestinian activist Mahmoud Khalil has been released after 104 days in immigration detention in the US.