Two New York teachers lost their bid Tuesday to recover union fees they had unwillingly paid before the U.S. Supreme Court's landmark Janus ruling, which put an end to the requirement that private-sector employees who opt out of union membership still pay into collective-bargaining efforts.