The victory for Democrats seemed likely after the Supreme Court earlier in the month upheld Texas’ gerrymandered map.