The major averages climbed on Wednesday, the last full trading day of the week.