ATLANTIC CITY (AP) — A popular Atlantic City restaurant will be allowed to rework its lease so it can continue operating in a space adjoining the shuttered Trump Plaza Hotel and Casino.

Inside the Rainforest Cafe in Atlantic City (Rainforest Cafe)

The Press of Atlantic City reports that a federal judge on Tuesday approved the deal for the Rainforest Cafe, which will now control the space on the Boardwalk for the next 20 years.

The cafe will have to build walls separating itself from the casino-hotel and take control of trash service, among other obligations, said Steven Scheinthal, the general counsel for Houston, Texas-based Landry's. That firm runs the restaurant and the Golden Nugget casino in Atlantic City.

The deal would resolve a legal battle with casino operator Trump Entertainment Resorts.

(Copyright 2014 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)