A trial lawyer followed a phone call into the pet business. Then he began tracing how America’s affection for dogs and cats was rewriting the rules of everyday life.