The attacks are part of an escalating cycle of violence between US forces and Iraqi groups aligned with Tehran.