A judge has described as “extraordinary” a law firm’s argument that the court should approve a $5.8 million settlement in an underpayments class action against the On The Run convenience store chain partly because it ran out of funds to take the case to trial.