Gray was previously the civil servant who investigated partygate before jumping to Labour