Section 23. The hearing by the housing appeals committee in the department of housing and community development shall be limited to the issue of whether, in the case of the denial of an application, the decision of the board of appeals was reasonable and consistent with local needs and, in the case of an approval of an application with conditions and requirements imposed, whether such conditions and requirements make the construction or operation of such housing uneconomic and whether they are consistent with local needs. If the committee finds, in the case of a denial, that the decision of the board of appeals was unreasonable and not consistent with local needs, it shall vacate such decision and shall direct the board to issue a comprehensive permit or approval to the applicant. If the committee finds, in the case of an approval with conditions and requirements imposed, that the decision of the board makes the building or operation of such housing uneconomic and is not consistent with local needs, it shall order such board to modify or remove any such condition or requirement so as to make the proposal no longer uneconomic and to issue any necessary permit or approval; provided, however, that the committee shall not issue any order that would permit the building or operation of such housing in accordance with standards less safe than the applicable building and site plan requirements of the federal Housing Administration or the Massachusetts Housing Finance Agency, whichever agency is financially assisting such housing. Decisions or conditions and requirements imposed by a board of appeals that are consistent with local needs shall not be vacated, modified or removed by the committee notwithstanding that such decisions or conditions and requirements have the effect of making the applicant's proposal uneconomic.
The housing appeals committee or the petitioner shall have the power to enforce the orders of the committee at law or in equity in the superior court. The board of appeals shall carry out the order of the hearing appeals committee within thirty days of its entry and, upon failure to do so, the order of said committee shall, for all purposes, be deemed to be the action of said board, unless the petitioner consents to a different decision or order by such board.