The tempo and mode of gene regulatory programs during bacterial infection