The New York Attorney General’s Office is conducting an inquiry into Compass’ position in the New York residential real estate market.