Bitcoin miner Greenidge wins legal battle to keep mining in New York