The legislation would give adoption shelters a way to screen prospective pet owners, which could help improve the ability of these groups to find safe homes for animals.