In general, they will not hold the illegal working against you when adjusting status based on marriage to a US citizen. My wife was in the same situation and the illegal working did not cause any issue with our case.

I suggest you answer the questions truthfully as far as your work, especially if you have the joing tax return.