Iraq’s government is intent to avoid spillover from the volatile Israel-Hamas war, which is threatening to draw regional powers into the bloody conflict.