(AP) - Voters have approved a ballot measure making Massachusetts the first state in the eastern U.S. to legalize the recreational use of marijuana.

Tuesday's approval marks a major national victory for proponents of legalized marijuana. Currently, using the drug recreationally is legal only in Colorado, Washington, Oregon and Alaska.

The statewide referendum passed despite opposition from top elected officials including Republican Gov. Charlie Baker and Democratic Boston Mayor Marty Walsh. Many business and religious leaders also had come out strongly against legalization.

Voters on Tuesday also were deciding whether to allow recreational cannabis use in nearby Maine as well as in California, Arizona and Nevada.