ah, OK, this sounds a bit more realistic. I'm no expert on bankruptcy by a long shot, but it sounds to me like they did what they did in compliance with the court's order. Any bank, CU, investment house, or other financial institution would be legally obligated to do the same thing. The key is that it's not something that the CU did on it's own volition and for it's own benefit. It was done because they were ordered to do so by the court.
While any institution will attempt to protect itself from loss, they cannot violate the bankruptcy order. They don't get to just make a grab for assets under bankruptcy, even if they have a claim as a creditor. They need to comply with the court's order, just like anyone else.