The luxury box suites, steakhouse dinners and champagne-fueled parties can return to an obscure corner of the real estate world, after a judge ruled that New York State’s efforts to ban entertainment in the title insurance industry had overstepped its authority.

The State Department of Financial Services had banned title insurers from such entertainment earlier this year, arguing that the millions of dollars spent on schmoozing was inflating the closing costs for New Yorkers trying to buy homes.

Home buyers in New York purchase title insurance, a guarantee of clear ownership, when buying property. The costs — roughly $2,700 for a $500,000 home around New York City — are lumped into various closing fees. Buyers rarely shop around because rates are the same for almost every insurer.

Maria Vullo, who heads the State Department of Financial Services, had argued that those rates were artificially high because of all the entertaining the industry had done to win the favor of real estate agents, brokers and the rest of the industry.