The Trump administration is working furiously to avert a new Turkish military offensive against the U.S.’s Kurdish partners in Syria, hoping to forestall an assault that could endanger U.S. forces working in the country and derail the fight against Islamic State.

President Trump spoke Friday with Turkish President Recep Tayyip Erdogan and urged him to call off his threatened assault, according to U.S. officials.

Mr....