. . . "Courts shall give preference to actions brought under this section over other civil actions or proceedings pending in the court.(h) The court may award court costs and reasonable attorney fees to any person or any official or agency of the commonwealth or a county, city, town or other political subdivision of the commonwealth that prevails by an adjudication on the merits in a proceeding brought p" . .