A moratorium on some crypto mining operations relying on carbon-based energy has been signed into law in New York.