I don't know the details, but once someone is in the country, legal or illegal, they are afforded certain constitutional protections. The government cannot start discriminating on race base just because the individual is an illegal alien for example. I am not sure exactly how they have standing to bring the suit itself but if they suffered some harm from an illegal type of discrimination then they still might be able to be complainants. They could always hear the lawsuit and then have them deported.
I haven't looked up the case/article, but I think the suit was about race discrimination. IIRC, something about targeting undocumented (or illegal) immigrants unfairly targets Latinos or other race. Haven't heard much about it since, but still wonder how someone who is in the country illegally can bring such a suit. Understand that many times logic and common sense aren't part of the process, but if the person isn't supposed to be in the US in the first place, then there wouldn't be a question of whether or not a law IN THE US would be discriminating against them. Just like I don't understand how someone can sue a homeowner for their dog attacking them while they were breaking into the house. They weren't supposed to be there in the first place! Don't want the dog to bite you in the ass and otherwise mess you up? Well, the person had a choice to enter someone else's private property illegally. Once they made that choice, everything else is on them. Consequences of actions. That's something that seems to be forgotten these days. . .
While maybe some of Trump's orders may not be constitutional, but they are in efforts to better protect the American people! While the policies that may discriminate, insult, oppress, whatever people from other countries, my impression is that these are all in effort to make America safer. I believe that was a big part of what got him elected and I am happy to see him acting on that. Yes, my ancestors immigrated to Hawaii from another country. While I am thankful for them having the opportunity to immigrate and settle in Hawaii, I am an American and I want to feel that it is a priority to take care of Americans first, before looking to be humanitarian to other countries. I certainly feel for what is going on and maybe banning immigrants from certain countries won't help reduce or eliminate terrorism, but it shows placing value on protecting the homeland. Just my opinion. . .
The government doesn't have to, and is not discriminating in any way based on race. If an individual is here illegally they are breaking the law. Period. The government has the right to detain them and prosecute and deport. That is in no way discrimination based on race, religion or otherwise. It is people lying about being singled out because of their race and religion. Not sure what you are trying to get at here?
That and certain media outlets maintaining that is the issue, while either being ignorant of the issues or flat out making is a "propo" issue.