A judge ruled the districts must avoid compliance with four previsions of SB 12, including a ban on clubs that focus on sexual orientation or gender identity.