The California Department of Public Health licenses and investigates skilled nursing facilities for safety violations and regulatory noncompliance, while assisted living facilities fall under the California Department of Social Services instead.