sadly, he still loses his right to bear arms. When one is involuntarily committed, atleastin my state, one immediately and permenently lose the right to bear arms. The final outcome does not matter.
The order was invalidated by court order. He is free to own firearms.