It’s unethical to stand by and allow a manufacturer this kind of control over their customers either by legal or technological means.
It should be illegal to impose such terms on anyone who purchases anything from you.
Freeing those phones was a virtuous act, even if done for self interested reasons.