US stocks end higher on positive economic data