Final answer:
The Pregnancy Discrimination Act of 1978 ensures equal treatment for women affected by pregnancy in the workplace, prohibiting any form of employment discrimination.
Step-by-step explanation:
The legislation that requires employers to treat women affected by pregnancy, childbirth, or related medical conditions the same as any other employees who are not able to work, with respect to all benefits, is the Pregnancy Discrimination Act of 1978. This Act amends Title VII of the Civil Rights Act of 1964 and prohibits discrimination against women in the workplace who are planning to get pregnant, are pregnant, or are returning to work after pregnancy. The Act ensures that pregnant women are treated with equality in employment aspects such as hiring, pay, and termination, as long as they can perform their work.