Widespread gains in commodity prices lifted energy and materials companies as part of a broad stock market rally on Wednesday after three days of declines.

Widespread gains in commodity prices lifted energy and materials companies as part of a broad stock market rally on Wednesday after three days of declines.