No, your application for naturalization to US citizenship will not be dependent on whether or not you have a job so you will be able to apply when the time comes regardless of whether or not you are employed.  As far as discrimination lawsuits, that is not part of immigration so you'd need to consult with an attorney who deals with those matters.