Federal agents detained more than 30 people as part of an action targeting 2 Birmingham-area manufacturing plants.