Wrentham is considering ignoring a Massachusetts law meant to increase the housing supply near public transit, two weeks after voters in Milton decided not to comply with the law.