Counsel for Donald Trump may subpoena a Manhattan real estate lawyer who "boasted" about alleged ex parte communications with the judge overseeing the ex-president's civil fraud case, a Supreme Court justice has said.