Judge chides Montana for refusing order to stop anti-trans law