Wall Street posted solid gains on Wednesday as energy shares zoomed higher on the back of a sharp gain in crude oil prices.