A day after the U.S. House of Representatives and Senate approved legislation that extends protections for state-level medical marijuana laws, President Trump signed the measure into law.

President trump signed the legislation into law this morning, temporarily preventing a government shutdown. The measure extends legal protections that prevents the government from using funds to enforce federal cannabis laws in states that have legalized the substance for medical uses (including those with a licensed dispensary system). The extension, however, is temporary; it will be valid until December 22nd, at which point lawmakers will need to pass another extension to avoid a shutdown of most government funding and to prevent invalidity the medical marijuana protections.

These protections – passed in 2014 as the Rohrabacher-Farr Amendment – prohibits the Department of Justice and DEA from using federal funding to enforce federal marijuana laws in a state that has legalized medical cannabis.

The bill signed into law by President Trump also extends protections on state-level hemp research programs.