On arriving back in US, president tweets: ‘Everybody can now feel much safer’