Of course it was unconstitutional. The only interesting question is whether any court will ever be in a position to say so (cause of action, immunity, &c.). Just like with partisan gerrymandering, we should understand that public officials are violating their oaths even if a judge never says so.
add a skeleton here at some point
4 days ago