Spare batteries
TSA’s entry points to the FAA for battery rules. For a spare lithium battery the FAA’s answer is carry-on only. Power banks follow the same rule.
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.
TSA puts this on every entry: “The final decision rests with the TSA officer on whether an item is allowed through the checkpoint.”