A state lawmaker has filed legislation that would make it illegal for women to use medical marijuana during pregnancy.