(I'm an attorney).
Then you should know that what you are suggesting is discriminatory.
First, I am not suggesting anything. I was actually just stating that companies can certainly check credit history as a qualification for being hired. Just like some companies check driver's records, criminal history, or have drug testing as a qualification of hiring. I'm not suggesting they do it, just stating a fact. You may not like it, but companies are within their rights to do it.
Secondly, while some may feel it is unfair, it is not discriminatory. To have a claim for discrimination, you have to be a member of a "protected class" of people. I'm not going to go into that here (nor will I get into a heated debate about this), but discrimination deals with race, gender, age, sexual orientation, disabilities, etc. Economic status is not something the law protects.
Personally, I don't love the idea of companies basing hiring decisions on economic history (b/c I know people who have had credit issues in the past, but are responsible and have good work ethics), but I do understand why certain companies would use that as a basis for hiring - like others have said here, many companies see it as a measure of responsibility and/or a red flag for potential loss liability.