The war had caught U.S. allies off guard and some were unwilling to heed the president's requests for help, which has created tensions between Trump and some G7 leaders.