A law passed by the state or federal legislature is called?

Kind of a vague question but you sound like you're referring to a "statute".