President Donald Trump says the US and its allies are committed to breaking terrorists' will, drying up their recruitment and preventing them from crossing borders to defeat them.