In a phone call, President Trump urged President Recep Tayyip Erdogan to limit attacks against Kurdish militias, including some backed by American forces.