A decades-old law designed to fight segregation by laying a path for more affordable housing in wealthy towns has led to only a smattering of new homes, with dozens of towns across the state offering scant options for people who aren’t affluent and some outright ignoring regulations. Now, as lawmakers are weighing a bid to supercharge the measure, they face pushback from local leaders who want to keep their grip on new development.