New York would be the first state to enact such legislation, if it becomes law.