Formation of a membraneless compartment regulates bacterial virulence