Trump's failures have largely been things out of his control, eg courts taking over immigration policy. He wanted good relations with congress and thus let them handle obamacare repeal. He basically handed them the ball and said, run for a TD and be the hero. Instead they fumbled, then blamed Trump for expecting anything out of them in the first place. Afghanistan policy is clearly a compromise. When it fails, he will be in a stronger position to insist on a pullout.
People are upset that Trump might trade DACA for wall funding. The problem is that Trump was always wobbly on DACA. It was not part of his core immigration policy. He wouldn't mind keeping some version of it. Otherwise, he'll have to deal with Ivanka's tears again.