Heavy-quarkonium interaction in QCD at finite temperature