A federal judge in Florida on Wednesday directed a golf club owned by U.S. President Donald Trump to pay $5.77 million to former members who claimed it wrongfully refused to refund their deposits after Trump took over in 2012.

U.S. District Judge Kenneth Marra in West Palm Beach said Trump National Golf Club Jupiter must repay $4.849 million, plus $925,010 in interest, to 65 former members for breach of contract, following a non-jury trial last August.

Marra said the club had no right to keep the deposits after locking out members who had declared their plans to resign prior to Trump's purchase in November 2012.