The proposed legislation would, its sponsor said, create a “clear and predictable framework” for autonomous vehicles.