Supo Nofisat, left, Oyeleke Azeezat, center, and Seun Goji visit a small health center earlier this month in Lagos, Nigeria, that is supported by the U.N. Population Fund. (Ruth McDowall for The Washington Post)

LAGOS, Nigeria — Supo Nofisat didn’t mean to get pregnant. As a single, unemployed 18-year-old living in Nigeria, she knew that having a child could mean an even harder life. So when her pregnancy test came back positive in January and a traditional midwife told her she was already three months along, the aspiring hairdresser thought she had only one option: abortion.

At the urging of a neighbor, Nofisat visited Hello Lagos, a youth-friendly clinic tucked in an inconspicuous alleyway in the heart of one of Africa’s busiest cities. There, she learned that the Lagos state government, with the support of the U.N. Population Fund (UNFPA), would cover the costs of her medical checkups during her pregnancy and connect her with professional training that could help her land a job. Within an hour, she had decided: She would keep the baby.

“Before coming to this clinic, I didn’t know how I would manage the costs of my pregnancy,” Nofisat said. “Now, I’m much less worried about that.”

Last month, the Trump administration announced it would eliminate U.S. funding for the U.N. population agency, saying that it partners with the Chinese government, which runs programs involving coerced abortion and forced sterilization. The U.N. group said the defunding is based on an “erroneous claim” and could have a devastating impact on the health of women and girls.

“We prevent unwanted pregnancies, we prevent abortions, and we prevent maternal death,” said Eugene Kongnyuy, deputy representative for the U.N. agency in Nigeria. “UNFPA has never and does not currently support abortion in any country, including China.”

Last year, the U.S. government provided a total of $69 million to UNFPA. Trump is now following in the path of every Republican president since Ronald Reagan, who first raised the question of the U.N. agency’s involvement in the controversial Chinese government programs in 1985 and then stopped all U.S. contributions. Democratic presidents have always reinstated the funding.

Supo Nofisat, who is pregnant, visits the health center in Lagos for a medical checkup. (Ruth McDowall for The Washington Post)

A State Department spokeswoman who commented on the condition of anonymity said that the most recent defunding is based on the fact that the Chinese government still pushes for involuntary sterilization and abortions to limit population growth — and that “UNFPA partners on family planning activities with the Chinese government agency responsible for these coercive policies.”

She said that the $32.5 million budgeted for the U.N. agency next year will be redirected to other maternal-health programs across the world.

Although the United Nations will try to raise funds to fill the gap, it is not yet clear it will succeed.

In Nigeria, health-care workers see a disturbing irony in the Trump administration’s decision: It will cut resources for programs that provide contraception, they say, and lead to more abortions.

Abortion is legal in Nigeria only when it is needed to save a woman’s life. But the Washington-based Guttmacher Institute, a reproductive-health research organization, estimates that 1.25 million Nigerian women underwent abortions in 2012, in the most recent study available. Many were carried out by untrained individuals and in unsafe conditions.

The sheer number of people living in Nigeria means managing maternal health here is complex. The western-African nation is home to 182 million people, making it the continent’s most populous country.

Health-care professionals see a clear link between family planning and other problems plaguing Nigeria — such as an economic crisis that has prompted tens of thousands of residents to cross the Mediterranean on flimsy boats in search of a better life. Kongnyuy,the UNFPA official, said that simply providing the resources for women to decide when to have a child can help lift families out of poverty from one generation to the next.

“If we reduce funding to family planning, it is going to be catastrophic,” he said. “No one wants to see more Nigerians crossing the Mediterranean.”

Nigerian officials have only recently embraced family planning, and the government now works with UNFPA to expedite deliveries of birth control and train staffers at state health-care facilities to safely provide contraception.

Catherine Ugwuezuoha, the nurse who has counseled Nofisat through her pregnancy, said that her clinic tries to discourage women from resorting to traditional birth attendants or illegal abortions, which often result in infections or internal injuries.

“Through our work, we have prevented so many unsafe abortions, I couldn’t even count,” she said.

On a humid morning in April, Ugwuezuoha sat at the center of a semicircle in her clinic’s waiting room, five teenage girls crowded around her. Four were pregnant, and the other had her newborn baby strapped to her back. They beamed as she introduced them to one another and then jumped into the importance of maintaining a balanced diet and avoiding street food during pregnancy.

They nodded as she urged them to save the phone number of a trustworthy driver who could take them to the hospital when the time came, pointing to the one who had already delivered as a success story. “We don’t want to lose you to a traditional birth attendant,” she said.

Those girls are among dozens of young, expectant mothers who have passed through Ugwuezuoha’s clinic since it opened a year ago. The Hello Lagos staffers are trained to offer medical and emotional support to pregnant teens, and they often mediate when it comes to sharing news of the pregnancy with the patient’s parents. They also provide group counseling sessions that help teenage moms feel less isolated in a conservative society that tends to stigmatize women who give birth before marriage. Each month, hundreds of other teenagers visit each of the four Hello Lagos clinics, whether to pick up condoms, request birth-control prescriptions or be tested for sexually transmitted diseases.

In other parts of Nigeria, the Trump administration’s funding cut is expected to affect urgent humanitarian response efforts. In October 2015, the U.S. Agency for International Development provided UNFPA’s Nigeria office with $3.2 million to improve maternal health and reduce gender-based violence in areas affected by the radical Islamist group Boko Haram. Shortly before the latest cut was announced, UNFPA requested an additional $1 million to extend the program. Now, agency officials are worried they could receive nothing at all.

In the Lagos state health ministry, one senior official said the U.N. agency’s support is critical. But since the news broke of the U.S. funding cut, she lives in fear that the programs she has helped implement will be discontinued. She spoke on the condition of anonymity for fear of retribution for criticizing the Trump administration.

“We watched from Nigeria as Americans elected Donald Trump,” she said. “We just didn’t think it would have an impact on us here.”

Reporting for this article was supported by the International Reporting Project