Oh my god. That judge is completely unfit for the bench. I'd file a complaint with the local bar association. One complaint may not do much but if everybody filed complaints maybe someone would look into their fitness for the job.

On the other hand - if it's any consolation, now that she has the "win" and I assume the financial benefits that go with being the primary custodian, it's pretty common for them to be happy to let you take the kids for more and more time as they figure out the burden of childcare is on them.