Legislation would open up adoption records