New York State lawmakers passed a bill late Thursday that would establish a two-year moratorium on certain cryptocurrency mining operations.