The maker of Twinkies and Wonder Bread heads to court Tuesday to try to throw out its union contracts, in a battle that leaves the iconic baker’s future very much in doubt.