US shares finished mixed as rising oil prices and losses in major technology stocks offset an easing in Treasury yields.