President Trump said on Thursday that he would not give the American military a direct role in helping stabilize war-ravaged Libya, rejecting years of pleading by Italy for more assistance in stemming African migrant traffic into Europe.