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.

Furthermore, the court unanimously agreed that the birthdate classification in Brookline’s law was “rationally related” to a government interest to curb minors’ use of tobacco products.