Town officials have been struggling to find a feasible plan to replace the cramped and outmoded justice court, which the state court system found in 2006 did not meet safety and security standards.