Trump praises US economy as S&P 500 closes at record 7,799