ATLANTIC CITY, N.J. (AP) — A judge says Atlantic City’s main casino workers’ union didn’t violate federal bankruptcy law by discouraging Trump Taj Mahal’s events clients from patronizing the resort.

Trump Entertainment Resorts, Taj’s corporate parent, wanted compensation for purportedly lost business. It also sought an order barring Local 54 of the Unite-HERE union from issuing similar communications.

U.S. Bankruptcy Judge Kevin Gross denied the firm’s request in an order issued Tuesday and made public Wednesday. The judge ruled that the union’s communications, part of a larger boycott against the troubled casino, are protected by federal law on labor organizing.

Trump Entertainment Resorts owns the property now, but lender Carl Icahn is taking ownership as it comes out of bankruptcy. Last year, the casino ended pension and health insurance for its unionized workers.

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