A federal bankruptcy judge finalized the liquidation of Hostess Brands on Thursday and approved a bonus plan for senior executives involved in the wind-down of the company.