The Supreme Court ruled that a landmark civil rights law protects gay and transgender workers from workplace discrimination.