Judge rules BISD will pay its own legal bills