A federal judge on Friday approved Eastman Kodak Co.’s $21.4 million offer to settle class-action lawsuits by black employees who maintained white counterparts were favored over them for pay and promotion.