ETA: Legitimate refugees, people actually being violently persecuted by the state for some aspect of their minority status, are unlikely to get proper vetting regardless of the quality of the vetting process, and 'tis quite humanitarian to take them in if they can be reasonably identified as such. Those not so persecuted are in the best position for their state to provide proper vetting, which if their state can't/won't provide proper vetting then we need to halt their immigration until reasonable vetting can be established. This has NOTHING to do with religion per se, especially when the allegedly discriminated-against group has over 5x as many members in other countries who can apply for properly-vetted visas without any difficulty.
But you have to admit that it got quite outrageous once they started removing LPRs and dual-citizens of foreign countries from inbound flights.