The terminations, which hit agencies involved in protecting the nation’s food supply and agricultural products, could have long-lasting consequences, experts said.