A key statute was designed to rein in the Homeland Security secretary and prevent deadly mistakes. Lawyers say its provisions are difficult to enforce.