Universal scaling between structural relaxation and vibrational dynamics in glass-forming liquids and polymers