Hostess Brands has won permission from the US Bankruptcy Court for the wind down of its business and the sale of its assets.