A New Jersey-based energy technology company and a real estate firm are avoiding criminal prosecution for unlawfully exploiting a state tax incentive program by agreeing to pay $5 million in penalties and be monitored in future applications for state benefits, the state attorney general announced Tuesday.