The bill of rights does not apply equally to both citizens and non-citizens. There’s a deep history of cases testing most of those amendments on this line, some landing one way, some landing another, and a few “it depends”.
And a district court judge’s rather inappropriate screed sets no legal precedent. It’s old man yells at clouds. It would be relevant to discuss founding documents or Supreme Court opinions.