Cities and counties may be barred from operating diversity, equity and inclusion offices under a bill Iowa Senate Republicans passed Tuesday.