New Jersey town to pay $3.25 million in lawsuit over mosque