Nut butters
Peanut butter is a spread, so TSA puts it under the 3.4-ounce limit.
An officer may ask you to take food out of your bag so the X-ray image is clear.
Flying home from abroad
TSA’s answer covers screening at US airports. On the way home you go through the other airport’s screening first, and its rules are the ones that count there.
Coming home through US customs
USDA’s rule: “Nuts are allowed entry if they have been boiled, cooked, ground, oven dried, pureed, roasted, or steamed.”
For raw, blanched or in-shell nuts, USDA’s page gives no yes or no. It gives a phone number to call instead. And its list of dried foods that are generally allowed includes nuts “but not chestnuts or acorns”.
Declare it either way. USDA says declared food brings no penalty, even when it’s refused. What happens if you don’t.
TSA puts this on every entry: “The final decision rests with the TSA officer on whether an item is allowed through the checkpoint.”