​​​​​President Donald Trump issued his first statement on medical marijuana since he took office.

Trump on Friday signed a $1.1 trillion omnibus spending bill that will keep the federal government funded through September 30.

The congressionally approved bill includes a rider — the Rohrabacher - Blumenauer Amendment — that disallows the Department of Justice and the Drug Enforcement Agency from using federal funds to prosecute medical marijuana businesses in states where medical marijuana is legal.

Marijuana is illegal at the federal level, though 29 states have varying degrees of medical marijuana legalization on the books. The amendment doesn't extend to recreational marijuana, which is legal in eight states.

Trump, who has stayed mum on the topic of marijuana since the election, finally gave an indication as to where he stands on the issue in his statement after he signed the bill:

"Division B, section 537 provides that the Department of Justice may not use any funds to prevent implementation of medical marijuana laws by various States and territories. I will treat this provision consistently with my constitutional responsibility to take care that the laws be faithfully executed."

Tom Angell, the founder of Marijuana Majority, an advocacy group, told Business Insider he thinks that Trump's statement is the federal government's way of "asserting their right" to go after certain medical marijuana businesses if they choose to at a later date.

RELATED: Riders in the $1.1 trillion spending bill

6 PHOTOS Riders in the $1.1 trillion spending bill See Gallery Riders in the $1.1 trillion spending bill BANKING: Loosens rules imposed after the 2008 financial crisis. The change relaxes regulation of high-risk investments known as "derivatives" — rules that were imposed to reduce risk to depositors' federally insured money and prevent more taxpayer bailouts. Banks said the crackdown stifled the competitiveness of the U.S. financial industry. (Alamy) MARIJUANA: Offers a mixed bag for pot smokers. The bill blocks the Justice Department from raiding medical marijuana dispensaries in states that permit them. But it also blocks federal and local spending to legalize marijuana in Washington, D.C., where voters approved recreational use in a November referendum. It's unclear what the practical effect of the spending ban will be. (Alamy) (Alamy) PENSIONS: Allows some pension plans to cut benefits promised to current and future retirees. The change is designed to save some financially strapped plans from going broke. It applies to multiemployer plans, which cover more than 10 million people mostly at small, unionized employers, often in the construction business. (Shutterstock) (Shutterstock) CAMPAIGN MONEY: Allows more money to flow into political parties. Under the new rules, each superrich donor could give almost $1.6 million per election cycle to political parties and their campaign committees. The comparable limit for 2014's elections was $194,400. (Charles Ommanney via Getty Images) (Charles Ommanney via Getty Images) OFFICIAL PORTRAITS: Continues a ban on spending money on portraits of Cabinet secretaries, Congress members and other big shots, a Washington tradition that some lawmakers felt had gotten out of hand. (Photo By Chris Maddaloni/CQ Roll Call) (Photo By Chris Maddaloni/CQ Roll Call) THE CAPITOL DOME: Topping it all off, spends $21 million to continue restoration of the leaky, cracked U.S. Capitol dome. (Photo by Bill O'Leary/The Washington Post via Getty Images) (Photo by Bill O'Leary/The Washington Post via Getty Images) Up Next See Gallery Discover More Like This HIDE CAPTION SHOW CAPTION of SEE ALL BACK TO SLIDE

"[M]y read is it's basically saying they reserve the right to do whatever they want and enforce prohibition regardless of the statutory prohibition on doing so," Angell said, though he doesn't think it necessarily indicates a federal crackdown on medical marijuana is coming.

Robert Capecchi, the director of federal policies for the Marijuana Policy Project, said in an email that Congress is growing "increasingly comfortable" with states adopting medical and recreational marijuana policies.

"Unfortunately, spending prohibitions like these expire at the end of the fiscal year, so there is still a need for a long-term solution," Capecchi added.

Jeff Sessions, the attorney general, told Colorado Gov. John Hickenlooper during a private meeting in April that prosecuting state-legal marijuana businesses wouldn't be a priority for the Justice Department.

NOW WATCH: 'Just a loose hunch': Watch Alec Baldwin impersonate Trump and Bill O'Reilly on 'SNL'

See Also:

SEE ALSO: Chris Christie says 'crazy liberals' want to 'poison our kids' with marijuana