Trump has in the past said NATO is obsolete because it has failed to protect Europe from Islamist attacks but U.S. Defense Secretary Jim Mattis has tried to reassure allies that the U.S. is still committed.