Not sure how it works in the US but many countries can choose to deny entry for any reason and my understanding is they don't even need to provide a reason.
If that is the case here then I really doubt the researcher was told that they have been denied entry due to their personal opinions on the Trump administration. This really just leaves us to speculate.