The conservative majority allowed Alabama to use a map for its US House of Representatives elections that a district court had previously barred as racially discriminatory.