The several district courts of the United States are invested with jurisdiction to prevent and restrain violations of section 8 of this title; and it shall be the duty of the several United States attorneys, in their respective districts, under the direction of the Attorney General, to institute proceedings in equity to prevent and restrain such violations. Such proceedings may be by way of petitions setting forth the case and praying that such violations shall be enjoined or otherwise prohibited