The justices blocked a lower court order that temporarily halted the ban’s enforcement.