Firm whose partners bill more than $2,000 per hour apologises to judge for software-driven errors in bankruptcy case