Bakersfield invests millions to build more affordable housing units