Deliberately sabotaging a technical task someone pays you to do is illegal, and nothing changes just because there's a software inter-layer, is trolöshet mot huvudman.
I know corporations get privileged protection, especially in the US. But I cannot imagine that this would be legal in any way. If you provide a service, and have limitation on what the service is for, then you reject the specific work. You don't take my money, pretend to do it, but sabotage it under the hood.