I would say this won't survive a lawsuit but I'm honestly not so sure anymore. This Supreme Court seems to be on the verge of being completely unhinged. Take Texas's controversial attempted end run around judicial review by outsourcing enforcement to private citizens with its abortion law.
If that construction holds up, it can be used by bypass any constitutional protection and SCOTUS should know that and they do [1] yet the Court declined to stay the controversial law pending review by the full court [2]. Whether you agree with the law or not, failure to stay a law that clearly alters something that has been established constitutional precedent for 50 years is utterly outrageous.
The outright assault by conservatives on civil liberties in the US is beyond shocking. Some of it is clearly virtue signaling. A lot of it is fueling with culture war with wedge issues (eg all the assaults on trans rights). But after McConnell spent 4 years rubberstamping conservative judges at every Federal level, I'm honestly afraid a disturbing amount of such reactionary legislation will actually stand.
[1]: https://www.politico.com/news/2021/11/01/justices-texas-abor...
[2]: https://www.texastribune.org/2022/01/20/supreme-court-texas-...