Section 34D. Notwithstanding any other general or special law to the contrary, the housing court, the district court or the superior court shall have jurisdiction and equitable powers to enforce the lawful orders of the marshal or head of the fire department pursuant to this chapter.