Harmonization is the proper term. For a simple set of harmonization rules, check out https://en.m.wikipedia.org/wiki/Four-part_harmony
Old hymnals are a wealth of examples. Take a listen to this guy's YouTube channel: https://m.youtube.com/channel/UC6BRCej5GRFLlovfZrNswqw