The justices will hear cases involving people who claim they were fired because of their sexual orientation.