Thailand is preparing to return a large shipment of illegally imported electronic waste to the United States after authorities seized the consignment .