An Ising model of transcription polarity in bacterial chromosomes