Topologically nontrivial Floquet band structure in a system undergoing photonic transitions in the ultrastrong-coupling regime