For nearly 40 years, customers flocked to Party City for Halloween costumes, favors for children’s birthday parties and decorations for New Year’s Eve celebrations.