Attorneys for TriMark USA and a group of major investors asked a Manhattan Supreme Court judge on Friday to dismiss a lawsuit aiming to unwind the food-service supplier’s $427 million pandemic refinancing package, which a group of lenders claimed had illegally dislodged them from a top position in the repayment line.

In a virtual hearing that lasted nearly three hours, lawyers for TriMark and its equity owners, The Blackstone Group Inc. and Centerbridge Partners, defended the rescue package as a necessary emergency measure that provided TriMark liquidity to survive an economic crash that hit the restaurant industry particularly hard.