NATO members agreed on a spending target of 5% of GDP by 2035, enabling the U.S. to shift its focus to the region as it zeros in on containing China.