A Massachusetts suburb unlawfully charged cannabis businesses nearly $2 million in “community impact fees,” a lawsuit alleges.