It is perfectly constitutional for a Republican-controlled legislature to make partisan districting decisions, even if there are incidental effects on minority voters who support Democratic candidates.
The State of Texas, in legal briefs on why it should not be subject to federal oversight for intentional discrimination in redistricting maps