Investor Carl Icahn has agreed to sell the shuttered Trump Taj Mahal casino to Hard Rock International and two New Jersey real estate families, the buyers said, under a $300 million plan to acquire, renovate and reopen the Atlantic City gaming hall.