The Afghan government has welcomed US President Donald Trump's plan to keep US troops battling Taliban fighters in Afghanistan.