How is it possible? Well, theoretically it's not. The order I got and subsequent denial of modification blatantly violate state law and appealate precedent. But it's all procedural. The standard for the underlying opinion of the judge is that if there is one fact to support that opinion then the ruling is upheld.
So I could have appealed and won. But then I go back to the same judge that doesn't think my kid should have any contact with me and all she has to do is find one fact to support that.
More often a custody order is just a piece of paper. The primary parent can screw with visitation easily and it takes time and money to go to court. The original divorce cost me $100k, another contempt motion $7k, and the failed modification $20k.
Custody ends for Father's when they give up. I gave up unusually early (which royally pissed off the judge) and this is my punishment.