The new air-permit deal ends years of legal disputes over Greenidge’s operations, clearing a major regulatory overhang weighing on the firm.