Japan’s Lower House on Tuesday passed a bill to legalize medical products made from cannabis, while clarifying the nation’s ban on the use of other types of marijuana.

The bill, which includes revising related laws, was sent to the Upper House the same day. If approved there, changes stipulated in the bill will likely go into effect by the end of next year.

The bill would pave the way for allowing the clinical use of Epidiolex, which contains cannabidiol, an active ingredient found in the cannabis plant. The product has been approved in the U.S. and Europe to treat severe epilepsy.