Lawsuit, if it hasn’t happened already: A court cannot order anyone to AA because of some imaginary “Separation of Church and State” clause in the Constitution.
The courts can not order anyone to AA because AA told them to go pound sand decades ago.
AA believes that being sober is something the person has to want and to place unwilling people in the group will cause harm.
They are right.
The courts can order you into treatment. You may choose to use AA as part of that treatment but you can not be ordered to attend AA meetings.