pick of a bad lot
It means "they" are the best (of their kind) that could be found, but that doesn't mean they are very good. It is like saying "this wine is the best of a poor vintage" or that someone is "the smartest one in the remedial program": hardly a compliment. Such a statement could also be called "damning with faint praise."