The implications of the Trump administration's leaked plan to erase transgender people from federal law came into sharp focus last week, when the Justice Department told the U.S. Supreme Court that employers should be free to fire workers because they are lesbian, gay, bisexual, or transgender.

The filing came in the case of Aimee Stephens. Stephens was fired from her position as a funeral director when she informed her employer that she is transgender and would be coming to work consistent with her female gender. Although she agreed to continue to follow the company's conservative dress code as a woman, the company rejected the plan and put Stephens out of work. The owner of the business testified later that he was “just old-fashioned” and believed that “a male should look like … a man, and a woman should look like a woman.”

That sounds like a straightforward case of sex discrimination. And it was—at least until the Trump administration got involved.

After Stephens lost her job in 2013, the Equal Employment Opportunity Commission stepped in to sue her former company for sex discrimination—and won. Earlier this year, a federal appeals court in Cincinnati agreed that firing Stephens because she is transgender—that is, because she didn't conform to her boss' notion of what a woman should look like—was unlawful.

Meanwhile, in 2017, Attorney General Jeff Sessions issued a memorandum to Justice Department lawyers not to enforce Title VII, the federal law barring sex discrimination in employment, on behalf of transgender workers. That was a dramatic about-face for the department, which since 2014 had recognized correctly that discrimination like the kind Stephens experienced is a form of sex discrimination. Not surprisingly, the memorandum offered no new authority warranting the change in position. Nor could it, given the tremendous progress transgender people have made in securing legal recognition by the federal courts. It was little more than a naked ideological attack on transgender workers.

But the memorandum wasn't binding on lawyers for the EEOC, the independent federal agency that was pursuing Stephens' case. That changed when the funeral home asked the Supreme Court to take the case, because the Justice Department represents the EEOC before the high court.

When the Justice Department weighed in last week, it threw Stephens under the bus in furtherance of Trump's political agenda. It argued that her victory in the court of appeals—which the bipartisan EEOC had asked for—was wrong, and that firing Stephens wasn't actually “discrimination” because she could have followed the dress code (and presumably kept her job) if only she would dress as a man. In other words, if only she weren't transgender.

Despite its lengthy explanation of why the court below got it wrong, the Justice Department grudgingly conceded that the Supreme Court shouldn't review Stephens' case. Instead, it suggested, the court should take a different pair of cases involving gay workers who lost their jobs because of their sexual orientation and rule against them. That would pave the way for a similar defeat for transgender workers in a future case.

For a model of how to interpret Title VII, the high court should look not to the Justice Department's retrograde political agenda, but to its own recent history. When the court last considered whether a particular form of discrimination qualified as discrimination because of sex, in 1998, it ruled in favor of the employee—unanimously. The wronged worker had worked on an offshore oil rig, where his co-workers subjected him to sex-related humiliation and assaults, even threatening him with rape. But because all of the employees involved were men, a lower court threw the case out, reasoning that the harassment wasn't based on sex.

The Supreme Court disagreed. Justice Antonin Scalia, not known for his liberal attitude toward employees, conceded that Congress probably had not been concerned with male-on-male sexual harassment when it passed the law in 1964. But, he reasoned, the words Congress chose to use—discrimination “because of sex”—extended to the situation at hand.

The same reasoning applies to Stephens' case. It would be inconsistent with the 1998 decision—and wrong—to exclude transgender workers from a law that protects everyone from discrimination based on sex. Yet that's exactly what Stephens' former employer, represented by an anti-LGBTQ organization and now backed by the Justice Department, hopes to accomplish.

If the funeral home succeeds and the Supreme Court strips LGBTQ people of sex discrimination protections that have been recognized by a growing number of courts, the immediate blow would be to LGBTQ people. But the permanent damage would be to the court itself.

Most people in this country agree that no one should lose their job because of who they are. Those people will not be silent if the court gets it wrong. They will make their voices heard, just as they did when the court wrongly barred Lilly Ledbetter from bringing her claim of pay discrimination. They will call on Congress to pass the Equality Act, which would provide express protection against discrimination because of gender identity and sexual orientation.

Congress may be able to clean up the law, but it can't fix the damage to the court if it bows to political pressure to scapegoat transgender people. In the wake of the contentious hearings to confirm Justice Brett Kavanaugh, Chief Justice John Roberts chided his colleagues on the court to rise above partisanship. Now Aimee Stephens waits to see whether he will take his own advice.

Ria Tabacco Mar is a senior staff attorney with the ACLU's Lesbian, Gay, Bisexual, Transgender and HIV Project.