SACRAMENTO (CBS / AP) – California lawmakers have approved emergency legislation that would allow a man with HIV to receive part of his HIV-positive husband’s liver before the surgery becomes too dangerous, possibly within weeks.

Friday’s approval by the state Senate and Assembly sends the measure to Democratic Gov. Jerry Brown.

READ MORE: 4 San Jose Double Homicide Suspects Arrested; Drugs, Weapons Seized

The federal government recently authorized transplants of HIV-infected organs to patients who have the disease, but it’s still illegal under California law and in more than a dozen other states.

The University of California, San Francisco Medical Center is one of four U.S. hospitals authorized to transplant HIV-infected organs.

READ MORE: Report: Supreme Court Justice Stephen Breyer To Retire

Transplant surgeon Dr. Peter Stock says he hopes to perform the operation quickly, but he’ll need time to do tests and preparation on the patients.

There are 65 HIV-positive patients waiting for kidney or liver transplants at the hospital.

MORE NEWS: Sonoma County To Spend $9 Million For Improved Fire Protection In Unincorporated Areas

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