NY legislators pass bill making them nation’s best-paid