In connection with an emergency in which a plant pest or noxious weed threatens any segment of the agricultural production of the United States, the Secretary may transfer from other appropriations or funds available to the agencies or corporations of the Department of Agriculture such amounts as the Secretary considers necessary to be available in the emergency for the arrest, control, eradication, and prevention of the spread of the plant pest or noxious weed and for related expenses.