I don't get it. The government could just ban the things it doesn't want instead.
Also, nothing stops people from buying the goods in question by using a payment service provider/bank that provides a layer on top of the CDBC and automatically circulates the money for you behind the scenes to avoid the expiry.