State lawmakers advanced a bill to establish legal standards for pet custody rulings, directing courts to consider the animals' best interests.