Ultrastrong coupling dynamics with a transmon qubit