Ultraviolet photometry from the Orbiting Astronomical Observatory. XXXVII - The energy distributions of 23 galactic globular clusters