Miraculously, one of Phillips' friends was a match for the star and was ready to make the life changing decision to be an organ donor.
Masterson thanked "the amazing person who donated their kidney to Bijou," saying that his wife was "given the gift of an encore by a tall angel."
He continued: "We do not take lightly how incredibly fortunate we are. 100% successful transplant.
"Now the real work begins for her to silence any chance of rejection," wrote the New York native.
Masterson's worries are not unfounded. According to the Mayo Clinic, kidney recipients have about a four percent chance of transplant failure or complications one year after surgery, with the stat ramping up to 21% (over one-fifth) after five years.
In mid-March, the Raising Hope actress was ecstatic when she revealed she "finally [had her] OR date for next week" via Instagram.
"I have been waiting for this day to come for a long time... My donor is a dream come true, such an amazing guy, so kind, he blows me away everyday!"
The Choke star revealed that her amazing donor had stayed by her side for three years, undergoing countless tests, battling insurance, and "rolling with the punches."
"It's been a wild ride. Fate finds you, he is a perfect match," wrote the starlet.
Masterson and his family first opened up about his wife's condition in February, when the star was rushed to a Santa Barbara hospital after suffering from a blood infection that left her feeling sick and experiencing an increased fever.
A rep for the couple shared that Phillips "was born with small kidneys" and that she had been "quietly dealing with [the] disease for the last five years, including being on the transplant list."
Phillips and Masterson, who are both Scientologists, married in Ireland after eight years together. They welcomed daughter Fianna Francis in 2014.