enact vs legalize

enact

verb
  • to make (a bill) into law 

  • to do; to effect 

  • to act the part of; to play 

legalize

verb
  • To make legal or permit under law. Either by decriminalising something that has been illegal or by specifically permitting it. 

How often have the words enact and legalize occurred in a corpus of books? (source: Google Ngram Viewer )