The President doesn't pass legislation so your statement is correct.  Congress does that.  When legislation passes, then the President signs it into law.  Didn't you have Schoolhouse Rock when you were a kid?

https://www.youtube.com/watch?v=tyeJ55o3El0