A state court judge has approved a $2 million class action settlement against an upscale golf club by former members who claimed they were stiffed on refunds when they resigned.

The settlement compensates members who joined New Jersey National Golf Club in Basking Ridge from 2003 to 2013 and paid hefty up-front fees to join. Those owners felt they were treated unfairly when the declining popularity of golf prompted the club owners to quit imposing the fees on new members.