And last month, a lawsuit was filed in federal court in Manhattan contending that Mr. Trump had violated the emoluments clause of the Constitution by allowing his hotels and other businesses to accept payments from foreign governments.

Mr. Trump has not sold any of his assets, which include golf courses, commercial real estate and marketing agreements. Rather he has handed the operations of his company over to his eldest sons, Donald Jr. and Eric, a move he hopes will reduce the appearance of conflict of interest.

Wednesday’s ruling — by Judge Kenneth Marra of Federal District Court in West Palm Beach, an appointee of President George W. Bush’s — calls for the club to pay $4.85 million in withheld fees to 65 club members involved in the lawsuit, plus an additional $925,000 in interest and other costs. As a result, those members will receive refunds of $35,000 to $200,000, depending on their level of membership in the club.

Amanda Miller, a spokeswoman for the Trump Organization, said the company planned to appeal.

“At the time Trump purchased the club, it was suffering financially, making it unlikely that these members would ever get back their deposits,” Ms. Miller said in a statement. “At trial, we presented overwhelming evidence that the plaintiffs’ memberships were never recalled and that the plaintiffs had waived this argument during the course of the litigation.”