The federal government will table a bill to legalize recreational marijuana on Thursday that is expected to tightly control the ability of producers to market their products to the public, federal sources said.