California’s public schools are bracing for a dramatic exodus, with almost a million students poised to leave classrooms as families flee the state’s soaring costs.