Militarily, the GBU-43 made a lot of sense, especially the terrain. Part of the reason to use the 43, is the same as was the case for the "Daisy Cutter" in Vietnam - it's a terror weapon (terrorizing enemy troops, not civilians). This is a very aggressive strike designed to put the spring campaign of the of insurgents on the back foot. The MSM went nuts over reporting on the "Mother Of All Bombs" - way to miss the point!
Historically, foreign affairs and especially military affairs have been the last best refuge of many presidents (CIC). It's not really a big surprise that the Trump admin turned their attention toward external affairs in light of a horrible opening bid on domestic issues.
I'd like us to leave Afghanistan, but I haven't read about any good solution to prevent it from becoming an anti-western terrorist haven.
Right now the US is stuck with lemons vis-a-vis Middle East affairs, best we can do for now is make lemonade. There are allot of fundamental instabilities that are extant in the Middle East and it has been that way for a long time. The Soviet invasion of Afghanistan and our support for the Mujaheddin kicked off a litany of miscalculation and intervention in this region that has proven disastrous.