The Obama administration’s guidance came shortly after the Justice Department sued North Carolina over a new state law that says transgender people must use public bathrooms that correspond to the sex on their birth certificate, a law the administration said violated the Civil Rights Act.