All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad, sallallaahu ‘alayhi wa sallam, is His slave and Messenger.
First of all, you should know that if you had married this woman a correct marriage contract fulfilling the conditions of a correct marriage contact, the most important of which is the consent of the guardian and the presence of two witnesses, then this woman became your wife. The fact that you married her for the purpose of getting a green card does not affect the validity of the marriage. However, if this marriage took place without the consent of her guardian or without witnesses, then it is a void marriage and it must be invalidated, but the child will be traced back to you.
In any case, if residing there is dangerous for you, then in our view, you should divorce this woman and migrate to your country even if you leave this child with her. The companions migrated to Al-Madeenah and left their wives and children in Makkah in order to rescue themselves and save their religion.
What happened to you confirms the warning of the scholars against residing in non-Muslim countries and marrying women from the people of the Book, especially in our present time.
For more benefit, please refer to Fataawa 84159 and 86405.
Allaah Knows best.