Laws are the general things that govern society, including Common law, like judicial decisions, and laws passed via legislation. Statutes are laws that are codified by a legislature.
All statutes are laws, but not all laws are statues.

The phrase “courts can’t make laws” is to some extent false.