I don't know how it is in america, but "disrespecting a police officer" is not a crime and should never be treated as such. It's just a case of some asshole cop trying to act superior. Saying "murica" is not disrespectful, it sounds more like a grumble than anything else.
The way I see it you were under no legal obligation to follow his directions, and he had no legal base in making them.