Party caught between criticism of president’s immigration policies and condemnation of protest violence