Companies that are struggling to pay creditors are managing to find millions of dollars to pay bonuses to their bosses.