A New Jersey town agreed to pay $5.5 million to a real estate developer which claimed its prospective tenant backed out of signing a lease in a proposed office and retail project after the mayor indicated he didn't support the project.