Court papers should over ride what a stamp at airport. Airport immigration can't supercede court orders. I would try visa online and bring your court papers. Court papers are legal and airport stamp can just be routine but more importantly why does your wife not call Thai lawyer to confirm. Sounds like that would be the easiest way to know for sure. And there is parental right visa as well. And I have heard you can petition a 5 year ban after one year. I think you have many options
i read today that pushing possibly later first quarter 2025. i had to fly back to usa for emergency and now i am ready to fly back and i knew they hoping orignal first of the year . it was making me nervous because i want to fly back on 28th of dec. looks like it delayed once again