NYS Inspection w check engine light on

As Mike said, in NH the CEL is an automatic failure.
And checking for the CEL is part of the inspection. Once you submit the vehicle, once you turn the key over to the shop, if the tech sees the CEL lilght on he cannot ignore it. He must at that point fail the vehicle.

You have only yourself to blame, for ignorng the CEL. You’re fortunate that all you suffered was a failed inspection.