The accord will expand the Trump administration’s footprint by deputizing National Guard members as immigration agents.