Rob Bonta, the son of labor organizers who rose from modest Central Valley means to become a state assemblyman, was confirmed by lawmakers Thursday as California's 34th attorney general.