Rocker switch in bedroom stuck? possible obstruction?
There could have been something trapped behind the faceplate. At this point I would probably say that was the cause , However if it happens again something inside the switch is failing not really a safety issue because the plastic encases the contact set.
So go ahead and use it as long as it is switching it should be fine. If it hangs up again get a new switch turn the breaker off and swap wire(s) 1 at a time re mount and turn the power back on.