NATO members pledged to ramp up military spending at their annual summit as they look to address growing fears about Russia’s ambitions and meet President Donald Trump’s demands that European nations contribute more to their own defense.