An employer can't fire someone simply for being queer or transgender, the Supreme Court rules.