First case is about non us citizens detained by the us get habeas corpus
Second is about how the us can detain enemy combatants but if they are us citizens, they still have the right to due process
Third is about the us court system can decide if non-us citizens in gitmo were wrongfully imprisoned
I don't see how these cases relate to a muslim ban or even immigration for that matter.
they're only tangentially related on the surface, but if the point of a muslim ban is to forbid terrorists from entering the US, then those cases
could be viable precedent to say that they would need definitive proof of malintent in order to prohibit entry, and that it would need to be presented in a trial of the same quality of a US citizen with full constitutional rights
of course, in doing this, they would also probably have to establish that they have a right to immigrate in the first place, which i suppose is an unlikely situation