Passing of new legislation is only used when a nation has a parliament, senate, etc., and votes to enact laws. So, passing legislation means that the representatives have voted for a law to be passed.
Contrast this with a dictatorship or monarchy where we would say a law has been decreed/imposed/promulgated.