Judge grants BISD restraining order