The 21 spaniels were trapped inside the truck’s cargo area without ventilation and air conditioning, according to police