An integrable reduction of inhomogeneously broadened optical equations