Public servant loses fight over Twitter attack on government