The Supreme Court agreed to decide whether federal job discrimination laws apply to sexual orientation and gender identity.