The company tried to do something beneficial for its employees, although perhaps it was misguided. They gained nothing here except the marketing benefit of trying to be employee friendly.
Margin loans are risky because you can get liquidated and lose your other principal. This was a cashless loan, that was only 50% recourse, so the only risk is that you may have to pay back half of what you bought the stock at if it ends up worthless.
I don’t think there was any incompetence or negligence here, and even if there was some incompetence, that’s not a theory of liability.