The U.S. Supreme Court’s Wednesday decision extending an exemption from federal job bias laws for church-run schools will open the door to discrimination against thousands of lay teachers, charged a dissenting Justice Sonia Sotomayor.

A 7-2 majority, led by Justice Samuel Alito, ruled that whether religious school teachers fall under the so-called “ministerial exception” depends “at bottom” on the scope of an employee’s work.