What matters is how they end up with the motivations that they have. Things like this travel ban is the wrong approach and a big waste of resources, but I wouldn't go out of my way to say that religion and Islam in particular is not a significant factor.
I see religions as similar to other major pseudoscientific movements, and that there's plenty of potential for the systematic deceptions and errors to lead to people directly causing harm through their actions.
And it could be that religion causes "issues of identity and belonging; a sense of persecution; mental illness; socio-economic grievances; moral outrage over conflict and torture; a craving for glory and purpose". You could go expand this list with more things explained with "that's not religion, it's this thing that can exist independently of religion", and end up with religion being nothing.
It's part of the whole, it's a major part of culture, it influences culture and is influenced by culture. The impression I get from articles like this is that there is a drive to remove all blame from a specific religion, similar to the drive others have to blame all harm on a specific religion.