Trump said the landmark legislation "accomplished some very wonderful things, but it also hurt a lot of people."