SACRAMENTO (CBS / AP) — Terminally ill California residents will be able to legally end their lives with medication prescribed by a doctor in three months.

State lawmakers adjourned a special session on health care Thursday, paving the way for California’s law allowing physician-assisted suicide to take effect in 90 days.

READ MORE: Solano County Sheriff Slammed Over Response To Claim Some Deputies Belong To Extremist Groups

Dying patients hoping to use the law have been in limbo since state lawmakers approved it last year.

It passed following the heavily publicized case of Brittany Maynard, a 29-year-old California woman with brain cancer who moved to Oregon to legally end her life in 2014.

READ MORE: Slow Recovery Prompts Businesses to Rethink Their Future in Downtown San Francisco

Opponents say the law could prompt premature suicides. Supporters say it gives the terminally ill a choice on how to end their lives.

© Copyright 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.

MORE NEWS: Gunman Kills 8 In Indianapolis FedEx Workplace Mass Shooting