If it were a private company that would be one thing, but the bus was run by a government agency. You bet I think things are better off that way.
Stealing bread to feed your family, "pulling the plug" on a loved one in pain ... these are understandable, albeit illegal, actions. Refusing to register an illegal machine gun ... well, I doubt you'll get much sympathy in a court of law. Work to change the laws. Get a consensus. Campaign to change the hearts and minds. Educate people. That's the way it's done. That way it's permanent.
The unique problem with firearms is that by the time one works to change those laws, it might be too late. Ensuring that there is an armed populace, legal or not, is absolutely moral. In fact, in my opinion, complying with these laws would actually be immoral.
So the local government agency, not Rosa Parks, was violating the law. The comparison with dope fails.