The court left in place temporary injunctions lower courts issued at the request of Republican-led states.