It was certainly rude and in very bad taste but a “complete investigation?” It was a tip, the customer is in charge of giving a tip...... or not.
Many restaurants add an automatic "gratuity" if the party at the table is over a certain number.