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.

Morristown reached the settlement April 10, when it was in the middle of a trial before Superior Court Judge Noah Franzblau in Morris County Superior Court.