Palestinian activist Mahmoud Khalil was released after three months in immigration detention.