The US Supreme Court ruled unanimously Thursday that a habitual user of marijuana cannot be barred from owning a gun.

The court ruled that the law used to prosecute a marijuana user violated his Second Amendment right to bear arms and is unconstitutionally vague.

The Supreme Court is siding with a Texas marijuana user who wants to legally own a gun, the latest in a line of firearm cases from a court that has expanded gun rights.

The Supreme Court’s ruling is expected to have wide ramifications for marijuana users who own firearms.