In any civil action brought by the Attorney General or a district attorney under this chapter, the court may, in addition to granting such prohibitory injunctions and other restraints as it may deem expedient to deter the defendant from, and insure against, his committing a future violation of this chapter, grant such mandatory injunctions as may be reasonably necessary to restore and preserve fair competition in the trade or commerce affected by the violation.