In the context of the 1780s-90s:
Militia is the whole body of free people who could be called up for military service
Well regulated means something closer to well-armed than "subject to lots of regulations"
And, the First War of Secession (in the 1770s) certainly suggests that militias might oppose the government