Forget the pastor idea unless she is glued to his wisdom,which carries no legal abilities. Try to find good legal council educated in tg matters, among other things. Did the judge in fact explicitly base his decision on the fact you are ill from tg activities secretly without any critical proof?
Get yourself some competent council.