The plan for a “train and assist” mission would partly reverse President Donald J. Trump’s withdrawal of nearly all American ground forces from the country.