Billionaire investor Carl C. Icahn said Friday he has agreed to buy a majority of the first-lien bank debt of Trump Entertainment Resorts, which owns three resorts in Atlantic City, N.J.

Carl Icahn

The deal is part of a bankruptcy reorganization plan Icahn negotiated to help the troubled casino company emerge from bankruptcy.