Vermont’s senate has passed a bill to legalise recreational marijuana use, which would make the state the first in the nation to do so through the legislative process rather than a ballot initiative.

Republican Governor Phil Scott is expected to sign the bill, which passed the Democratic-controlled Senate by a voice vote. The Democratic-controlled House of Representatives passed the measure last week. Although Vermont is one of the most politically liberal states, it is also one of 23 in the nation that do not allow ballot initiatives.

The Vermont bill would allow those 21 and older to possess up to one ounce of marijuana, two adult plants and four immature plants beginning on 1 July. It does not immediately clear the way for retail sales of the drug, leaving that up to a commission created last year to study how to tax and regulate it.

Passage would put the state directly at odds with the Trump administration. Last week, US Attorney General Jeff Sessions reversed an Obama-era policy easing enforcement of federal laws banning the drug in eight states where it is legal.

“Vermont in particular doesn’t care very much what the attorney general thinks,” said Matt Simon, New England political director for the pro-legalisation Marijuana Policy Project. “With the way this bill is written, having a few plants, there’s nothing that the feds could do even if they wanted to.”

Law enforcement groups in Vermont have criticised the legalisation drive, saying the drug poses health risks and that there is no way to quickly test drivers who might be intoxicated by marijuana.

Neighbouring Massachusetts, nearby Maine and six other states have legalised marijuana use as a result of voter initiatives.

New Hampshire’s House of Representatives on Tuesday passed a similar bill to legalise recreational marijuana use. That state’s governor, Republican Chris Sununu, has said he opposes legalisation.

In pictures: 4/20 Marijuana world rallies Show all 26 1 /26 In pictures: 4/20 Marijuana world rallies In pictures: 4/20 Marijuana world rallies A man wears a marijuana leaf mask during the annual 4/20 cannabis culture celebration at Sunset Beach in Vancouver, British Columbia AP In pictures: 4/20 Marijuana world rallies A lady smokes marijuana on Parliament Hill on 4/20 in Ottawa, Ontario Getty Images In pictures: 4/20 Marijuana world rallies James Reed smokes a joint during the Denver 420 Rally at Civic Center Park in Denver, Colorado Getty Images In pictures: 4/20 Marijuana world rallies People sign a 4/20 sign on Parliament Hill on in Ottawa, Ontario Getty Images In pictures: 4/20 Marijuana world rallies A woman smokes marijuana on Parliament Hill on 4/20 in Ottawa, Ontario. Polling released showed strong support in Canada for a government drive to legalise recreational use of marijuana, but many would like the proposed minimum age for consumption to be raised. Sixty-three percent of respondents told the Angus Reid Institute they support legalisation Getty Images In pictures: 4/20 Marijuana world rallies A man smokes marijuana during the annual 4/20 marijuana rally on Parliament Hill in Ottawa, Ontario, Canada Reuters In pictures: 4/20 Marijuana world rallies Demonstrators smoke marijuana during the '4/20 Santiago' rally in favour of legalisation in front of the La Moneda presidential palace in Santiago, as part of the Global Marijuana March which is being held in hundreds of cities worldwide Getty Images In pictures: 4/20 Marijuana world rallies People play with a mock marijuana joint during a 4/20 party to demand legalisation and to celebrate marijuana culture outside the Senate building in Mexico City, Mexico Reuters In pictures: 4/20 Marijuana world rallies Adam Eidinger, co-founder of DCMJ, hands out free marijuana joints to DC residents who worked on Capitol Hill as part of the 1st Annual Joint Session to mark '4/20' day and promote legalising marijuana on Capitol Hill in Washington, DC Getty Images In pictures: 4/20 Marijuana world rallies In pictures: 4/20 Marijuana world rallies Police arrest Rachel Ramone Donlan after she handed out free marijuana joints to DC residents who worked on Capitol Hill as part of the 1st Annual Joint Session to mark '4/20' day and promote legalising marijuana on Capitol Hill in Washington, DC AFP/Getty Images In pictures: 4/20 Marijuana world rallies Police arrest Rachel Ramone Donlan after she handed out free marijuana joints to DC residents who worked on Capitol Hill as part of the 1st Annual Joint Session to mark '4/20' day and promote legalising marijuana on Capitol Hill in Washington, DC Getty Images In pictures: 4/20 Marijuana world rallies Thousands of people gather to smoke marijuana during the '420 Santiago'rally in front of the La Moneda presidential palace in Santiago Getty Images In pictures: 4/20 Marijuana world rallies People attend the Denver 420 Rally at Civic Center Park in Denver, Colorado Getty Images In pictures: 4/20 Marijuana world rallies Kevin Barron and Lasean Moore of Raleigh, North Carolina, share a joint during the Denver 420 Rally at Civic Center Park in Denver, Colorado Getty Images In pictures: 4/20 Marijuana world rallies Nic Ruhl takes a pull on a giant hand rolled joint at precisely 4:20pm MDT during the Denver 420 Rally at Civic Center Park in Denver, Colorado Getty Images In pictures: 4/20 Marijuana world rallies Various cannabis paraphernalia on display at a vendor's stall during the Denver 420 Rally at Civic Center Park in Denver, Colorado Getty Images In pictures: 4/20 Marijuana world rallies Mo Banez, of Austin, Texas, lights a joint during the Denver 420 Rally at Civic Center Park in Denver, Colorado Getty Images In pictures: 4/20 Marijuana world rallies A man displays a large container of cannabis during the Denver 420 Rally at Civic Center Park in Denver, Colorado. The rally, held annually, is a celebration of both the legalisation of cannabis and cannabis culture. Colorado is one of twenty-six U.S. states along with the District of Columbia that has legalised the use of cannabis either recreationally or medically AFP/Getty Images In pictures: 4/20 Marijuana world rallies Sitting in small groups on mats shaded by trees in the Rose Garden just across from the Knesset, participants lit up as the clock struck 4:20 for the local version of the traditional worldwide April 20 pro-marijuana events, known as '420' rallies Getty Images In pictures: 4/20 Marijuana world rallies An Israeli smokes a marijuana joint in Jerusalem during a rally at the Rose garden Getty Images In pictures: 4/20 Marijuana world rallies Sitting in small groups on mats shaded by trees in the Rose Garden just across from the Knesset, participants lit up as the clock struck 4:20 for the local version of the traditional worldwide April 20 pro-marijuana events, known as '420' rallies Getty Images In pictures: 4/20 Marijuana world rallies An Israeli girl poses with a mock marijuana joint in Jerusalem during a rally at the Rose garden, to celebrate 420 and to express their defiance of current laws Getty Images In pictures: 4/20 Marijuana world rallies aelis pass around a marijuana joint in Jerusalem during a rally at the Rose garden, to celebrate 420 and to express their defiance of current laws Getty Images In pictures: 4/20 Marijuana world rallies An Israeli smokes a marijuana joint in Jerusalem during a rally at the Rose garden, to celebrate 420 and to express their defiance of current law Getty Images In pictures: 4/20 Marijuana world rallies An Israeli smokes a marijuana joint in Jerusalem on April 20, 2017 during a rally opposite the Knesset to celebrate 420 and express defiance of current laws AFP/Getty Images

Marijuana advocates say that legalising sales of the drug will help to phase out the existing illegal market and allow states to take in additional tax revenue.

Five of the first states to legalise the drug - Colorado, Washington, Oregon, Alaska and Nevada - together generated more than $485 million in tax revenue off marijuana sales in the first nine months of 2017, according to an analysis by the Marijuana Policy Project.