New York lawmakers pass bill to ban crypto mining