Drugmakers and technology companies led declines.