Americans commonly use the phrase "the government" to refer to any or all of the branches of government, not just the executive branch. Guessing the comment you're replying to was written by an American.
Americans also use "legislature" to refer specifically to the legislative branch of our and other governments responsible for drafting legislation, which certainly does not draft nor pass itself into law.