Ex-battery maker B456 wins court approval for bankruptcy plan