A violation of the Establishment Clause occurs when immigration policies are enacted that favor or disfavor one religion over others without a secular purpose. For a policy to withstand constitutional scrutiny, it must avoid religious entanglement or endorsement.
For example: A visa policy giving preference to one religious group over others for resettlement purposes could violate the Establishment Clause unless it serves a non-religious humanitarian goal.