The Supreme Court announced on Monday that later this year the justices will hear arguments on whether federal law forbids discrimination on the basis of sexual orientation and gender identity, in the first major LGBT cases since Justice Anthony Kennedy’s retirement.