The Posse Comitatus Act restricts using federal troops in civilian law enforcement. Exceptions exist, but Trump’s crackdown on immigration is shaping up to be a major test for the law.