US stocks end higher as oil prices ease