Praise be to Allah.
Undoubtedly living in a Muslim country, among fellow Muslims, is better and preferable, and is further removed from trials and doubts than living in a non-Muslim country. Migration from non-Muslim countries to Muslim countries is obligatory upon the Muslim who is living in a non-Muslim country, if it is possible for him to do so, when he is not able to practice his religion openly and establish its rituals and duties, or he fears for himself lest he be tempted by desires and confused by doubts, especially in that land where the Muslims are suffering all kinds of trials and tribulations.
Based on what is mentioned in your question, what we prefer for you is what you are inclined to yourself:
Which is to look for suitable work and permanent residency in some Muslim country, even if the salary there is lower and worldly comforts there are less available. This is undoubtedly safer in terms of your religious commitment and will make you feel more at ease.
If that is not possible, or it is too difficult to achieve that, then until it is possible for you to do that, we advise you to work in the field of teaching history, because this is further removed from the shar‘i infractions that would be involved in studying or practising man-made American law, which is inherently contrary to the laws of Allah, may He be exalted.
And whenever the first solution becomes possible for you, then seize the opportunity and strive to do that which is safer for your religious commitment and more beneficial for you.
And Allah knows best.