What is the ruling for one who works in a shop and his duty is to place the goods purchased in bags for Muslim and non-Muslim customers, and it happens that he has to put items in the bags that are haram to consume?

For non-Muslim [customers] there is no objection except for wine and pork. [Needless to say, no haram item may be sold to or packed for Muslim customers.]