The evolution of dust-obscured star formation activity in galaxy clusters relative to the field over the last 9 billion years