The bill, sponsored in the Senate by State Senator Tom Duane, would restrict the use of key-card systems that collect personal data, including photographs, names, addresses, and the dates and times tenants or their guests enter and exit their apartments.