The alliance sought to flatter the U.S. president with sweeping defense spending pledges, but Trump offered little comfort on Ukraine or Russia.