The move sparks sharp rebuke from California’s Democratic leadership after wave of US immigration raids.