A compromise between Gov. Gavin Newsom and Sen. Scott Wiener turned a law aimed at unmasking ICE agents into a legal victory for the Trump administration.