The 2010 law, formally known as the Patient Protection and Affordable Care Act, prohibits health care providers that receive federal funds, as nearly all of them do, from discriminating on any basis enumerated in the Civil Rights Act of 1964 and other federal laws, including gender.