A former New York City judge who resigned last year while under investigation for professional misconduct has been charged with abusing his position to swindle real estate investors out of at least $5 million and then using some of the loot to pay his …