This is dumb, botanically tomatoes are a fruit doesn't preclude them being vegetables because vegetable isn't a botanical term at all. Tomatoes are fairly sweet but they have more culinarily in common with vegetables. Nutritionally I'm not positive but it's a separate issue.
Regardless the supreme court decision was regarding tariffs/imports/customs which makes sense to classify it simply by the way in which people consume it. People eat tomatoes as a vegetable, just like we eat zucchini and cucumber as vegetables despite them all also being fruit.