Previously I have posted the entire memorandum of law of 2020 by New York State Attorney General Leticia James allowing real estate agents in New York to practice law in the state if they write only "simple contract" that do not violate agreements between local associations of lawyers and realtors (among some seemingly punitive wordplay that is devised to conceal the main permissive meaning of the memo).
Practice of law in the state of New York by people who do not have a license to practice law from a New York State Appellate Division ("unauthorized practice of law", or UPL) is a crime of misdemeanor.
Additionally, market-sharing agreements (like associations of attorneys and realtors deciding if it is ok for members of one another's association to invade the other's trading turf) are crimes prohibited by federal antitrust laws (The Sherman/Clayton Act).
Additionally what constitutes a crime in New York must be defined by statute, the New York Penal Code, and not by agreements between trade associations - they have no legislative powers in New York.
So, neither NYS AG James, nor the court whose decision she quotes in her Memorandum of law could endorse commission of a state crime (UPL) on a condition that it is approved through commission of a federal crime.
Note that an attorney representing the State of New York endorses commission of these two crimes in order to please her own professional association.
Note that the duty of this elected public official is - supposedly - to enforce the laws of the State of New York and protect New-Yorkers from violators of the laws, not to encourage violation of the law.