Regardless, the TSA slob did not have to be a dick about rifling through and making a mess.
You are allowed to be present when TSA opens and removes items from your carry-on bags. That is the time to complain if you don’t like the way they repack. Not much you can do with checked bags since you aren’t there, but usually there is no problem with having checked liquids. I’ve seen whole cases of wine go through checked baggage. TSA will leave a card inside the checked luggage if they opened it. If there is no card and something is missing, it should be reported to the airline as a theft.
I’ve traveled myself many times with wine and spirits that have been checked. The only time I had to discard liquids from a checked bag was in Paris which has specific rules about liquids and foods that is different from the US and just about every other country I’ve been in.