Two of the Department of Homeland Security's immigration enforcement agencies are preparing for the possibility of more civil unrest amid a contentious election, according to officials, part of a concerted effort by federal and local authorities to prepare for large-scale protests.