Public servant free speech holds governments to account, court told