Lawmakers now recognize dogs and cats as family members, letting judges grant full or shared custody in separations.