Customs: United States Customs and Border Protection conduct and initial inspection on the goods to ensure the correct amount of Duties and taxes are paid along with protecting the countries borders from smuggling.
USDA: United States Department of Agriculture do an inspection on the plants to ensure they are declared correctly, free of pests etc.
All shipments have to pass through both departments before being released in to the United States and passed over to USDA.