US stocks end higher as Dow closes above 45,000 for 1st time