Switzerland’s pharmaceutical industry drove a recovery after outsized US tariffs plunged its export-focused economy into only the second contraction since the pandemic.