Pot is (or will be) legal but constitutionally-protected guns are illegal.
What part of the constitution authorizes federal prohibition of pot?
The Constitution doesn't "authorize" federal prohibition power. It prohibits government overreach against guaranteed rights (among other things).
Because cannibis isn't an inalienable right, the federal government can restrict it if they so desire. Which they have. Rightly so, in my opinion.