James Mattis issued the warning to the other 27 members of the alliance on Wednesday during a closed session at Nato headquarters in Brussels on his first visit to Europe as a senior member of Donald Trump’s cabinet.