Sadly, it is sometimes part of working life - especially when you have a rotten boss.
He should have actually told the customer that the words were out of order but he would be afraid of losing the customer and so took that person's side rather than yours.
Just keep your head down whilst looking for other jobs and, as soon as you have secured another, let him know why you no longer wish to work for him.