ARLINGTON, VA – AUGUST 21: U.S. President Donald Trump delivers remarks on Americas military involvement in Afghanistan at the Fort Myer military base on August 21, 2017 in Arlington, Virginia. Trump was expected to announce a modest increase in troop levels in Afghanistan, the result of a growing concern by the Pentagon over setbacks on the battlefield for the Afghan military against Taliban and al-Qaeda forces. (Photo by Mark Wilson/Getty Images)

WASHINGTON (CBSDFW.COM/AP) – President Donald Trump said the U.S. needs a plan for “an honorable and enduring outcome” in Afghanistan.

He said a rapid exit would have unacceptable consequences.

READ MORE: Ones For Wellness: What Puts Women More At Risk For Strokes

Trump said, “a hasty withdrawal would create a vacuum” that the Islamic State group and al-Qaida would fill.

The president was making a rare, nationally televised address late Monday on his strategy for what is America’s longest war.

Soon after, Trump received praise from Republicans in Congress.

Trump said his original instinct was to pull out of Afghanistan, but he shifted his view after studying the issue “from every conceivable angle.”

U.S. House Speaker Paul Ryan says he is pleased with President Donald Trump’s strategy for Afghanistan that he outlined in an address to the nation.

Ryan spoke about the president’s comments Monday night at the outset of a town hall meeting in his Wisconsin congressional district.

Ryan says previous strategies in Afghanistan were “convoluted” and what Trump outlined was a “more comprehensive strategy.”

Ryan says he’s pleased that Trump is moving away from having a timetable for withdrawing from Afghanistan and wants to prevent creating a safe haven for terrorists. Ryan says “we can’t afford to allow that to happen again.”

President Trump said during his address, “I will not say when we are going to attack, but attack we will… From now on victory will have a clear definition. Attacking our enemies, obliterating ISIS crushing al-Qaida preventing the Taliban from taking over Afghanistan and stopping mass terror attacks against America.”

Retired Marine Major General James Williams said in Dallas after watching the President’s address, “It’s an approach that I am sure he has given a lot of thought to.”

General Williams led troops in Afghanistan for several years and says the challenges to winning in Afghanistan predate any modern day strategy change.

“In Afghanistan you have to look at the 50,000 year history we are the 6th empire that has gone through there and nobody has been successful,” General Williams said.

MORE NEWS: Suspect In Custody Following DPS Chase In Johnson County

(© Copyright 2017 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)