I’m not sure a court ruling is a requirement for something to be called a coup.
anyone can call anything anything, sure(is it a "coup" when I paint a good painting, or win a game of chess? https://www.thefreedictionary.com/coup), but the great-grandparent comment referred to a "bizarre and highly illegal" coup.