California has long struggled with providing enough affordable housing, especially for people looking to buy their own home.