“That was thought to be a provision to help them participate in the labor force and achieve more work-family balance, and it’s doing the opposite,” said Ms. Prada, whose study was published last month by the National Bureau of Economic Research.

Spain passed a law in 1999 giving workers with children younger than 7 the right to ask for reduced hours without fear of being laid off. Those who took advantage of it were nearly all women.

Over the next decade, companies were 6 percent less likely to hire women of childbearing age compared with men, 37 percent less likely to promote them and 45 percent more likely to dismiss them, according to a study by Daniel Fernández-Kranz, an economist at IE Business School in Madrid, and Núria Rodríguez-Planas, an economist at City University of New York, Queens College. The probability of women of childbearing age not being employed climbed 20 percent. Another result: Women were more likely to be in less stable, short-term contract jobs, which are not required to provide such benefits.

“One of the unintended consequences of the law has been to push women into the lower segment of the labor market with bad-quality, unprotected jobs where their rights cannot be enforced,” Mr. Fernández-Kranz said.

These findings are consistent with previous research by Francine Blau and Lawrence Kahn, economists at Cornell. In a study of 22 countries, they found that generous family-friendly policies like long maternity leaves and part-time work protections in Europe made it possible for more women to work — but that they were more likely to be in dead-end jobs and less likely to be managers.

There is no simple way to prevent family-friendly policies from backfiring, researchers say. One idea is to make sure that employers do not have to finance them. As in Chile, they will often pass the burden to employees. The three American states — California, New Jersey and Rhode Island — that offer paid family leave finance it through employee payroll taxes, for example.

Another suggestion is to make sure policies are generous but not too generous. Some say that more than three months of maternity leave is helpful, but that more than nine months begins to hurt women’s career prospects.