Union Pacific Railroad’s policy of not covering contraceptives in its health plan didn’t discriminate against women, the 8th U.S. Circuit Court of Appeals ruled Thursday.

The railroad prevailed on appeal because its policy does not cover any contraceptives for men or women, so the court agreed Union Pacific did not violate the federal Civil Rights Act.