Here’s what to know about the law and the Department of Homeland Security’s policies—and the rights of bystanders.