Legislature passes bill exempting wells on family-transfer land