The deal unites two of the largest US-based online learning platforms at a time when consumer course enrollment growth has cooled from pandemic highs