Bathroom electric issue
You have hot and switched mixed up (or hot feed and hot out) if you have constant power where you want switched, and switching the switch turns off the outlet in the hallway.
i.e. you THINK the outlet in the hallway powers the lights, when it appears that the lights power the outlet in the hallway. So the lights come first, then the hot (used to) run on to the hallway, and now the wire to the hallway is passing through a switch, so the hallway is switched, and the thing you want switched has constant power.