Renter scoring firm agrees to pay $2.2 million to settle case accusing its algorithm of discriminating on race and income