California has historically depended on immigration to counterbalance its population loss to other parts of the country.