If you are actively going through bankruptcy there are usually restrictions on payment.
You can get in trouble if your company has a lot of debts and you "pay" your uncle a million dollars for a bs job or you gives yourself a bonus.
But paying devs that built something for you in the ordinary course of business is not really going to get you in trouble in any but the most extreme circumstances.