A New Mexico man pleaded guilty to federal charges after dozens of illegal marijuana farms were discovered.