The move blocked a pathway for those seeking medical care in the United States, including young children who arrived in recent weeks with serious conditions.