The European members of the North Atlantic Treaty Organization (NATO) have agreed to a big increase in defence spending as demanded by the US President.