Costco has quietly turned junk-drawer electronics into a grocery budget tool, letting shoppers swap aging phones and laptops for digital gift cards that spend like cash in the warehouse aisles.