As anti-ICE protests erupt, the new requirement shows how rapidly the mission is changing at an agency traditionally focused on terrorism, drug smuggling and border security.