New York lawmakers have passed a bill targeting the use of warehouse productivity quotas in the state, a move aiming to curtail metrics employed by Amazon that has come under more scrutiny in the past few years.