As for a shelter, I won't go to one. His mother and his father have both offered shelter for me.
If you leave, go to the shelter, nOT his parents. You would be putting his parents in harms way.
The whole reason shelters exist is because the single most dangerous time in an abusive relationship is when the woman leaves. You've read the stories on the news - woman and kids flee to family or friend's house - abuser shows up and kills family and friends as well as his target. This is why shelter locations are kept very secret.
Maybe at some later date it would be safe to take up his parents' offer, but to go there first would be to invite tragedy. That's why I emphasize going somewhere that he can't trace you. If you go somewhere other than a shelter, he might be able to accuse you of keeping the kids from him. If you're in a shelter you are safe from that accusation, too.
I suspect the reason the judge didn't evict him is because it's his house and you have no legal claim on it at present - he was probably expecting you to move out.
This is getting dangerous for you and for the kids. Please be very careful.