Short Answer
If there are other jobs available, it is prohibited to work in an industry that sells prohibited products or where your labor helps cause serious injustice. However, if you have no other option, you may take this job temporarily to support yourself and your family while actively searching other employment, and you must quit as soon as you find something else.
Advice
If you are in a difficult financial situation, put in extra time and effort to find good employment and continue to ask Allah for help regularly. One of the prayers taught by the Prophet Muhammad was:
“اللَّهُمَّ اكْفِنِي بِحَلاَلِكَ عَنْ حَرَامِكَ وَأَغْنِنِي بِفَضْلِكَ عَمَّنْ سِوَاكَ”
“O Allah, suffice me with Your lawful against Your prohibited, and make me independent of all those besides You” (Tirmidhi hasan #3563)
Shaykh Mustafa Umar
Version 0.25