The Massachusetts Supreme Judicial Court has sided with a town in a lawsuit filed by several retailers over a provision that prohibits the sale of tobacco products to anyone born after Jan. 1, 2000, holding that the local law was not preempted by the state's Tobacco Act.