The legislation would make it a felony to lie about a sample donor’s identity or educational and family medical background.