Welcome to FT!
You describe a troubling scenario. Sorry to hear about this, however, ins, a bit confused:
You were departing LAX on an international trip, but went through CPB? Usually, when you enter the US, you go through CPB.
You described very bad behavior on the part of the agent. If your husband did not escalate, he is sure to prevail on appeal.