The legislation, which appears to be the first of its kind signed into law in the country, seeks to end a common practice among U.S. Immigration and Customs Enforcement agents that critics say erodes transparency, fosters fear and raises concerns that criminals could try to pose as federal officers. The Department of Homeland Security has maintained that using masks to shield ICE agents’ faces protects them against harassment and doxing.