A lawsuit against East Hampton Town, filed a year ago by a privately held drug treatment program in the Northwest Woods neighborhood, was dismissed on March 2 by a federal court judge in Central Islip. The judge, Leonard D. Wexler, found that Safe Harbor Retreat L.L.C. should have undergone a permitting process outlined in the zoning code before bringing the suit.