after the contract is over?

I got my Treo 650 unlocked by ATT after about 6 months into a 2 year contract.

Surely, ATT will release the iphone owners from having to stay with them after the 2 year contract is over (at the very least!).

Wasn't such subsidy locks deemed illegal a few months ago?