Investor beats out low-income families for affordable home