Nine towns are suing to block New Jersey’s new affordable housing law, arguing it imposes excessive mandates on municipalities without fully considering local conditions and resources.