Authorities have fined two companies after a well-known Chinese comedian altered the lyrics of a patriotic song during a performance.