Fetching details from the dictionary...
political operations; (Heian Period) political operations and ceremonies of the Imperial Court; (Edo Period) civil suit
「公事」 has another reading with different meanings.
government business